Every box has its own isolated filesystem. Upload, write, read, list, and download files inside the box.
API#
Upload files#
Push local files into the box. Each entry maps a local path to a destination inside the box workspace.
You can upload multiple files in a single call. All uploads run in parallel.
Write files#
Create or overwrite a file directly from a string. Useful when you want to inject configuration, scripts, or generated content without a local file.
Read files#
Read the contents of a file as a string.
List files#
List the entries in a directory. Each entry includes the path, size, type, and last modified timestamp.
Download files#
Pull files from the box back to your local machine. Call with no arguments to download the entire workspace, or pass a folder to download a specific file or directory.
Examples#
Feed data to an agent#
Upload input files, run the agent, then read back the structured result.
Inject config before a run#
Write environment-specific configuration into the box, then let the agent use it.
Collect outputs from parallel boxes#
Fan out work across multiple boxes, then download each result locally.