run_shell_command
Run a shell command in a Google Colab terminal and wait for its completion. Designed for quick commands, not long-running tasks.
Instructions
Runs a short shell command through Colab Terminal and waits for completion. Do NOT use this for training or long jobs; use start_background_command plus watch_background_command instead.
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": "run_shell_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to run in the Colab runtime. | |
| timeoutSeconds | No | Maximum seconds to wait before killing the command. | |
| cwd | No | Optional working directory inside the Colab runtime. |