Run command in sandbox
run_in_sandboxExecute shell commands inside a session's sandbox from the repository root, then return the exit code and combined output for validation or debugging. No network access.
Instructions
Run a shell command from the repository root inside a session's sandbox. Returns the exit code and combined stdout/stderr, truncated in the middle if very long. No network access.
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": {
"session_id": "<session_id>",
"command": "<command>"
},
"name": "run_in_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command, run with sh -c | |
| timeout_s | No | Kill the command after this many seconds | |
| session_id | Yes |