The Model
- A filesystem is persistent storage.
- A task can attach a filesystem.
- The task sees that filesystem at
/workspace.
/workspace is a runtime mount of a persistent resource, not just a scratch directory.
Three Different File Flows
1. Whole-Filesystem Archive Flow
Use this for directory-level push and pull.tu fs pushtu fs pullget_upload_urlget_download_url
2. Single-File Flow
Use this for exact path-level reads and writes.upload_filedownload_fileget_filelist_files
3. Runtime Sync Flow
Use this inside Python agent code when you need explicit sync during handler execution.adk.filesystem.sync_downadk.filesystem.sync_upadk.task.sync_down_system_folderadk.task.sync_up_system_folder
Writable vs Read-Only /workspace
/workspace is not always writable.
- writable when the caller can update the attached filesystem
- read-only when the caller can run the task but lacks update permission
- tmpfs when no filesystem is attached