run_command
Run a shell command in the sandbox and get {stdout, stderr, exit_code}. Use bash -c '…' style strings for pipelines. Large output is truncated — write to a file and read_file it 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": {
"sandbox_id": "<sandbox_id>",
"cmd": "<cmd>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | shell command to run | |
| cwd | No | working directory (default workspace root) | |
| sandbox_id | Yes | sandbox id | |
| timeout_seconds | No | command timeout (default 60) |