sandbox_run
Run shell commands inside a disposable Linux sandbox VM to execute code, install packages, or inspect files, returning stdout, stderr, exit code, and timeout status.
Instructions
Run a shell command inside a sandbox and return what it printed.
Use this to execute code, install packages, inspect files, or do anything else on the
sandbox computer. The command is run by bash, so pipes, redirects, && and multi-line
scripts all work. Each call starts in the home directory with a fresh shell: files
persist between calls, but cd and environment variables do not. The command gets no
keyboard input, so use non-interactive flags (for example apt-get -y).
timeout_seconds: how long the command may run (1 to 3600, default 60). When the limit is reached the command is killed and timed_out is true.
Returns stdout, stderr, exit_code (0 means success) and timed_out. Very long output is cut at 1 MB; stdout_truncated / stderr_truncated say when that happened.
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": "sandbox_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| sandbox_id | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||