Execute Command in Sandbox
sandbox_execExecute commands in a sandbox and receive stdout, stderr, and exit code. Supports custom working directory, environment variables, and timeout.
Instructions
Execute a command inside a running sandbox and return stdout/stderr/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": {
"name": "<name>",
"command": "<command>"
},
"name": "sandbox_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Sandbox name | |
| command | Yes | Command to execute | |
| args | No | Command arguments | |
| cwd | No | Working directory override | |
| env | No | Additional environment variables | |
| timeout | No | Timeout in seconds |