execute_code
Execute Python or JavaScript code securely in a sandboxed environment with configurable timeout up to 60 seconds. Authenticate using a credit token or x402.
Instructions
Execute code in a sandboxed E2B environment. Supports Python (default) and JavaScript. Max 60s timeout. Paid endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to execute | |
| language | No | Programming language (python or javascript) | |
| timeout | No | Execution timeout in seconds (max 60) | |
| credit_token | No | Credit token for authentication (optional if using x402) |