run_python
Execute Python code in a secure sandbox for data analysis, calculations, and testing with configurable timeout settings.
Instructions
Execute Python code in secure E2B sandbox. Use for data analysis, calculations, testing.
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": "run_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to execute | |
| timeout | No | Timeout in ms (default 30000) |