Quick Start
How It Works
File Storage has two buckets:| Bucket | Purpose | API |
|---|---|---|
| Uploads | Files you upload for agents to use | storage.upload() |
| Downloads | Files agents download from websites | storage.download() |
Uploading Files
Upload files from your local machine to make them available in sessions:Downloading Files
Download files that agents retrieved from websites:Force Overwrite
Overwrite existing local files:Using with Agents
Agents can interact with files on websites when storage is attached:Using with Sessions
Use file storage with scripted automation:API Reference
FileStorage Methods
| Method | Description |
|---|---|
upload(file_path, upload_file_name=None) | Upload a local file to storage |
download(file_name, local_dir, force=False) | Download a file to local directory |
list_uploaded_files() | List files you’ve uploaded |
list_downloaded_files() | List files downloaded by agents |
Parameters
upload()file_path- Path to the local file to uploadupload_file_name- Optional custom name for the uploaded file
file_name- Name of the file in storagelocal_dir- Local directory to save the fileforce- Overwrite existing file (default: False)
Supported File Types
File storage supports all common file types:- Documents: PDF, DOCX, XLSX, TXT, CSV
- Images: PNG, JPG, JPEG, GIF, WEBP
- Archives: ZIP, RAR, TAR, GZ
- Media: MP4, MP3
- Data: JSON, XML

