execute_code
Execute JavaScript or Python code securely with comprehensive error handling and security measures
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": {
"language": "<language>",
"code": "<code>"
},
"name": "execute_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to execute | |
| input | No | Input data for the program (stdin) | |
| timeout | No | Execution timeout in milliseconds (max 60000) | |
| language | Yes | Programming language to execute | |
| memoryLimit | No | Memory limit in MB (max 512) | |
| enableNetworking | No | Enable network access for this execution |