Skip to main content
File storage allows agents to upload and download files from websites. Storage is persistent and session-scoped so you can retrieve files after the session ends.

Methods

upload

Upload a local file to storage. Parameters:
  • file_path - Path to the local file
  • upload_file_name - Optional custom name for the file in storage
Returns: bool - Success status

download

Download a file from storage to a local directory. Parameters:
  • file_name - Name of the file in storage
  • local_dir - Local directory to save the file
  • force - Overwrite existing file (default: False)
Returns: bool - Success status

list_uploaded_files

List files you’ve uploaded to storage. Returns: list[str] - List of uploaded filenames

list_downloaded_files

List files downloaded by agents during sessions. Returns: list[str] - List of downloaded filenames

Parameters

session_id
UnionType[str, None]
default:"None"