What it does
Execute code in a secure, ephemeral E2B cloud sandbox and return stdout, stderr, and exit code. Supports Python, JavaScript, TypeScript, Bash, and C. Each call creates a fresh sandbox — no state persists between calls. Requires the workspace owner to have enabled Undisk Compute (E2B_API_KEY configured).Required scope
compute:run
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | Yes | Programming language to execute. Values: python, javascript, typescript, bash, c. |
code | string | Yes | Source code to execute in the sandbox. |
timeout_ms | number | No | Maximum execution time in milliseconds (1–60000). Default: 30000. |