start_background_command
Start a background shell command in a Colab runtime, with output logged to a file and status tracked for monitoring.
Instructions
Preferred tool for training and long jobs. Starts a background shell command through Colab Terminal, writes stdout/stderr to a log file, and records status for watch_background_command.
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": {
"command": "<command>"
},
"name": "start_background_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to start in the background. | |
| name | No | Optional stable name for the background command. | |
| logPath | No | Optional runtime log path. Defaults to /content/colab_mcp_logs/<name>.log. | |
| cwd | No | Optional working directory inside the Colab runtime. |