execute_code
Execute code in a sandboxed environment and receive the output, isolating runs for security.
Instructions
Execute code in a sandboxed environment and return the output.
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, javascript, bash) | python |