PostgresVFS connects to Postgres via a DSN and exposes its schemas and tables as a tree.
Setup steps for the DSN and required permissions live at Postgres Credentials.
Node
Browser
Config
Fields marked secret are redacted in snapshots.
Mount mode
read only. Postgres mounts are read-only at the VFS level.
Snapshot behavior
The DSN is redacted on snapshot. Hand the mount back at load (the third argument ofWorkspace.load, or a config over the server and CLI).
VFS.md
The VFS.md an agent reads with Postgres mounted at/<path>.
- Rendered
- Raw
Virtual Filesystem
VFS Layout
/<path>
- Read
database.jsonfirst to plan joins. - Read
semantic.jsonto learn what a table means: it splits columns into dimensions (group by), time_dimensions and facts (aggregate), and carries COMMENTs, enum domains and example values. - Reading
rows.jsonlis refused for a table above the configured row or byte threshold. Usehead,tailorwc, which ask SQL for only what they need, orgrep, which fetches only the matching rows when SQL can find every match.
Supported Unix Commands for VFS
Unix commands work on each path as on a local filesystem, as far as the path supports them:Limitations of Unix Commands for VFS
Where a path differs from a local filesystem:Run
man <cmd> or <cmd> --help for one command’s usage.Integration
What PostgreSQL answers through its own API, so fewer files are read. Integration explains each command.
The Python PostgreSQL docs list when each search answers and what it can miss.