upload_file
Uploads a local file to a Colab runtime, creating parent directories as needed for any file type. Returns a transfer ID to check progress.
Instructions
Upload a local file to Colab, creating parent directories as needed. Supports arbitrary file types. Requires the Chrome companion and a connected runtime. Returns a transfer_id immediately; use transfer_status to check progress. File bytes do not enter the conversation. Only one transfer runs at a time. Existing files require overwrite=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"local_path": "<local_path>",
"colab_path": "<colab_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| colab_path | Yes | Absolute runtime file path, e.g. /content/data.zip. | |
| local_path | Yes | Absolute local file path. |