execute_code
Run Python, JavaScript, or TypeScript code securely in a sandboxed environment. Execute code snippets with isolated resources for safe testing.
Instructions
Execute code in a secure sandboxed environment. Supports Python, JavaScript, and TypeScript.
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 | The code to execute | |
| language | No | Programming language | python |