Key Features
- Session-Scoped Storage - Files persist within a conversation/execution
- Read/Write Operations - Full file I/O access
- No External Dependency - Built-in, no configuration needed
- Automatic Cleanup - Files deleted when session ends
- Per-File Limit - Up to 10MB per file
How to Enable
Files is automatically available on all agents and gateways. No configuration needed.Usage Examples
Write a File
Read a File
Append to File
List Files
File Operations
- Python
- Bash
- Node.js
File Paths
Default Location
Use/tmp/ for session-scoped files:
Limitations
- Cannot write outside
/tmp/ - Cannot access system directories
- Session-isolated (each execution has separate storage)
File Scopes
Session Files
Files written during agent execution, available within the same session.Persistent Storage
For data that needs to persist beyond a session, use:- Knowledge Retrieval (vector index)
- External storage (HTTP Client to upload)
- Workflow state (between runs)
Common Recipes
Store Structured Data
Process CSV
Generate Reports
Cache Results
Resource Limits
| Limit | Value | Notes |
|---|---|---|
| Per-File Size | 10MB | All scopes |
| Files per Scope | 100 | Per scope |
| Agent Home Storage | 50MB | Persistent agent storage |
Cost
For current pricing details, see Pricing.Limitations
- Session-scoped only - Files deleted when session ends
- No sharing - Each session has isolated storage
- System directories restricted - Only
/tmp/accessible - No real-time sync - For persistence, export to external storage
Best Practices
Use Descriptive Names
Clean Up Large Files
Handle Missing Files
Use Appropriate Formats
- JSON for structured data
- CSV for tabular data
- Plain text for logs
- Markdown for reports
Troubleshooting
”File Not Found”
File was in different session or manually deleted. Create new file.”Permission Denied”
Can only write to/tmp/. Cannot write to system directories.
”Disk Full”
Exceeded storage limit. Delete large files or break into smaller sessions.Data Lost After Session
Expected behavior. Use HTTP Client to upload results, or save to Knowledge base.Persistence Strategies
For Short-term (single session)
Use Files capability directly.For Long-term
- Export to external storage via HTTP Client
- Save to Knowledge base
- Store in workflow execution context
For Shared Data
- Use HTTP Client to upload to shared service
- Create connector to external database
- Use workflow outputs