execute_code
Execute code securely in a sandboxed environment supporting Python, JavaScript, Bash, and R, for $0.005 per execution.
Instructions
Execute code in a secure sandboxed environment (E2B). Supports Python, JavaScript, Bash, and R. $0.005 per execution.
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to execute | |
| timeout | No | Execution timeout in seconds | |
| language | No | Programming language | python |