run_command
Run shell commands in a sandbox to safely execute AI-generated code and retrieve stdout, stderr, and exit code.
Instructions
Execute a shell command inside a sandbox. Returns stdout, stderr, and exit code.
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>",
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute | |
| timeout | No | Command timeout in seconds (default: 30) | |
| sandbox_id | Yes | Sandbox ID returned by create_sandbox |