/workspace.
The critical thing to understand is that Terminal Use exposes three different file flows.
Choose The Right File Flow
| Goal | Use this | Do not use |
|---|---|---|
| Upload or download the whole filesystem | tu fs push, tu fs pull, getUploadUrl, getDownloadUrl | uploadFile, downloadFile |
| Upload or download one file by path | uploadFile, download_file, downloadFile, getFile | getUploadUrl, getDownloadUrl |
Sync /workspace inside a running agent | Python ADK adk.filesystem.sync_down and sync_up | CLI or TypeScript SDK |
Resource Operations
| Operation | Description |
|---|---|
| Create Filesystem | Create a new filesystem in a project |
| List Filesystems | List filesystems you can access |
| Get Filesystem | Retrieve filesystem metadata |
| List Files | List file metadata from the filesystem manifest |
| Get File | Retrieve one file’s metadata or embedded content |
| Single-File Download | Download one file as binary content |
| Upload File | Upload one file with overwrite or conditional semantics |
| Get Upload URL | Get a presigned URL for whole-filesystem archive upload |
| Get Download URL | Get a presigned URL for whole-filesystem archive download |
| Complete Sync | Internal/archive sync completion API used by higher-level sync flows |
Whole-Filesystem Archive Flow
This is the flow for syncing an entire filesystem as a compressed archive.CLI
TypeScript
Python
get_upload_url and get_download_url are archive-level operations. They are not single-file APIs.
Single-File Flow
Use this when your app needs to read or write one path without rebuilding the whole archive.TypeScript
Python
list_files or get_file.
In-Agent Runtime Sync
This flow is for code already running inside the agent runtime. It is a Python ADK surface, not a CLI surface and not a TypeScript SDK surface.Read-Only Workspace Behavior
The mounted filesystem is not always writable. If a caller can run the task and read the filesystem but cannot update the filesystem, Terminal Use mounts/workspace read-only for that task.
See Access Control.