fs module — no SDK wrapper needed.
How It Works
Each agent execution gets its own temporary workspace. The only writable directory is/work — this is your working directory, HOME, and CWD. All other paths in the sandbox are read-only for security.
Everything in /work is ephemeral — destroyed after execution ends. If you need to persist data, send it to an external API before the execution finishes.
Writing Files
Reading Files
Persisting Files
Files in/work are deleted when execution ends. To keep them, send to an external service before finishing:
Send to External API
Working with Binary Files
Temporary Files in Workflows
Workflows can pass file paths between steps:Security and Limits
The sandbox is fully isolated — each execution runs in its own environment with strict constraints:The
/work directory has 0777 permissions — your agent code can create, read, and write files freely within it. Trying to write anywhere else will fail with a permission error.Available System Tools
The sandbox includes common utilities you can use viachild_process:
- ffmpeg / ffprobe — audio/video processing
- python3 — Python scripts
- node — Node.js
- imagemagick (
convert) — image manipulation
Next Steps
Tools
Build tools that work with files
HTTP Utilities
Download and upload files via HTTP
Knowledge (RAG)
Upload files to knowledge bases
Media Processing
Process audio and images