Skip to content

Built-in Tool: Filesystem

Document ID: TRT-101
File Path: docs/07-tool-runtime/filesystem.md
Version: 1.0.0
Status: Draft
Owner: AI Platform Team
Last Updated: 2026-06-27


The fs.* built-in tools let agents read and write files within an allowed workspace. They run in the Tool Runtime sandbox under filesystem policy.


ToolDescription
fs.readRead a file’s contents
fs.writeCreate/overwrite a file
fs.appendAppend to a file
fs.listList a directory
fs.statFile metadata
fs.deleteRemove a file

// input
{ "path": "/workspace/src/config.rs" }
// output
{ "path": "...", "bytes": 1024, "content": "..." }

Inputs/outputs are validated against the tool’s JSON schema (execution API).


fs:read:/workspace fs:write:/workspace

Access is default-deny; only explicitly granted paths are reachable (tool isolation). Plugins/agents must hold the matching grant.


  • Runs with a fresh, isolated root; only granted paths mounted; system paths read-only.
  • Output is bounded (max_output_bytes) to prevent huge reads.
  • Path traversal outside allowed roots is rejected.
  • Scratch is wiped on teardown.

fs.read/fs.list/fs.stat are read-only and may be cached briefly; writes are side-effecting and never cached (caching).


Terminal window
wovyr tools invoke fs.read --input '{"path":"/workspace/README.md"}'

Commonly used by the Code Agent.



VersionDateDescription
1.0.02026-06-27Initial Filesystem tool spec