/workspace. These endpoints give your product direct access to it — sync agent outputs, seed input files, or clean up. All paths are relative to the workspace root.
List files
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | No | Directory to list. Defaults to the root |
Read a file
text() convenience:
Write a file
Uint8Array, or Blob; parent directories are created automatically.
Delete a file
Watching for changes
Rather than polling, enablefilesystem_webhooks in the deployment’s features to receive filesystem events on the SSE stream whenever the agent writes to the workspace:
Errors
| Status | Error | When |
|---|---|---|
| 400 | validation_error | Invalid or escaping path |
| 404 | not_found | Deployment or path does not exist |
| 413 | validation_error | File exceeds the size limit |

