upload_local_file
Upload a file from your local machine to the Colab runtime by specifying its local path.
Instructions
Uploads a file from the local machine running this MCP server to the Colab runtime. Prefer this over upload_file when the source is a local path.
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": {
"localPath": "<localPath>",
"path": "<path>"
},
"name": "upload_local_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute or relative path on the local machine running the MCP server. | |
| path | Yes | Destination path in the Colab runtime, for example /content/train.py. | |
| overwrite | No | ||
| makeParents | No |