Run a command in a sandbox
sandbox_execRun a command in a sandbox. Runs one command in the sandbox with /bin/sh -lc and answers its exit code and output. A sandbox that is still starting is waited for (up to a minute). The sandbox's own env is set, under the command's. Use ?stream=1 for commands that run longer than about 90 seconds.
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": "sandbox_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| stream | No | ||
| command | Yes | ||
| sandboxId | Yes | ||
| timeoutMs | No |