execute_in_sandbox
Execute untrusted shell commands or code in an isolated, non-root Docker sandbox with CPU/memory limits and timeout enforcement.
Instructions
Executes untrusted shell commands or code payloads inside an isolated, non-root ephemeral Docker container with strict CPU/memory limits and timeout enforcement.
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": {
"code": "<code>"
},
"name": "execute_in_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code or shell command to execute inside the sandbox | |
| timeoutMs | No | Execution deadline in milliseconds (default: 5000) |