Skip to main content
Files capability provides session-scoped file storage. Read, write, and manage files during agent execution without external storage services.

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

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

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

  1. Export to external storage via HTTP Client
  2. Save to Knowledge base
  3. Store in workflow execution context

For Shared Data

  1. Use HTTP Client to upload to shared service
  2. Create connector to external database
  3. Use workflow outputs

Next Steps