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.
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 |