Agent Filesystem
Quick Start
from glaip_sdk import Agent
agent = Agent(
name="file-agent",
instruction="Use files to plan, draft, and revise outputs.",
filesystem=True, # Defaults to Local Disk
)
agent.run("Create /reports/summary.txt and then read it back.")Backend Options
Backend
Best For
Execute Default
Persistence
Usage Examples
Local Disk (Default)
In-Memory (Testing)
Sandbox (Isolated Execution)
Available File Tools
read_file - Read File Contents
read_file - Read File Contentswrite_file - Create New Files
write_file - Create New Filesedit_file - Modify Existing Files
edit_file - Modify Existing Filesls - List Directory Contents
ls - List Directory Contentsgrep - Search File Contents
grep - Search File ContentsReading Large Files & Outputs
Pagination Strategy
Line-Based (Default)
Character-Based
Tool Output Auto-Eviction
When to Use Each Backend
Local Disk
In-Memory
Sandbox
Troubleshooting
"Why can't I run commands with filesystem=True?"
filesystem=True?"Sandbox Not Available
Related Documentation
Last updated
Was this helpful?