Run Command in Ephemeral Sandbox
sandbox_runCreate an ephemeral sandbox, execute a shell command, and retrieve the output—designed for quick one-off tasks like running scripts or testing code.
Instructions
Create an ephemeral sandbox, run a shell command, return the output, and destroy the sandbox. Best for quick one-off tasks like running a script, checking a command, or testing 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": {
"image": "<image>",
"command": "<command>"
},
"name": "sandbox_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | OCI image (e.g. "python:3.12", "node:22", "alpine") | |
| command | Yes | Shell command to execute | |
| memoryMib | No | Memory in MiB (default: 512) | |
| cpus | No | Number of vCPUs (default: 1) | |
| env | No | Environment variables |