execute_command
Runs a shell command inside a sandbox container at /workspace, enforcing a timeout and capturing stdout, stderr, and exit code for inspection.
Instructions
Executes a shell command inside the sandbox container at /workspace with timeout enforcement (default 30s) and captures demuxed stdout, stderr, and exitCode.
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": {
"sandboxId": "<sandboxId>",
"command": "<command>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command string (e.g. "npm test" or "python app.py") | |
| sandboxId | Yes | Sandbox ID | |
| timeoutMs | No | Command timeout in milliseconds (default 30,000ms) | |
| workingDir | No | Subdirectory inside /workspace (optional) |