code-execute
Execute Python, JavaScript, or shell code in a secure sandbox with configurable timeouts and pre-configured templates.
Instructions
Execute code in a secure sandbox with pre-configured environments. Cost: 2 credits.
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": "code-execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to execute. | |
| timeout | No | Max execution time (1-300s). | |
| language | No | Programming language. | python |
| template | No | Pre-configured environment. | default |