Overview
The Workspace Files API provides access to files generated during task execution within a session workspace. Agents can produce artifacts such as scripts, analysis results, or data exports during execution — this API lets you browse and retrieve those files.Endpoints
Security
Shannon enforces strict path security on all workspace file operations:- Path traversal protection — requests containing
..or absolute paths are rejected with400 Bad Request - Symlink validation — symbolic links pointing outside the workspace are blocked
- File size limit — downloads are capped at 100 MB per file
List Workspace Files
List files and directories within a session workspace.Path Parameters
Query Parameters
Example with Subdirectory
Response
Response Fields
Download File
Download a specific file from the session workspace. The response Content-Type is automatically detected based on file content.Path Parameters
Response
- Content-Type: Automatically detected (e.g.,
text/plain,application/octet-stream,text/csv) - Body: Raw file content
If the Firecracker executor is unavailable, the gateway falls back to reading files from the local filesystem. This fallback is transparent to the client but may return a
502 if neither source is accessible.Error Responses
All errors follow the standard format:
Example Error: Path Traversal
Example Error: File Too Large
Related
Sessions API
Manage sessions and view session history
Tool Execution
How agents generate workspace artifacts