run_code
Execute a method in a sandboxed environment by providing file and method UUIDs. Returns output, success, error, and optional benchmark data.
Instructions
Execute a method in sandboxed environment. Requires file and method UUIDs. Returns output, success, error, and optional benchmark data.
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": {
"file": "<file>",
"method": "<method>"
},
"name": "run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | UUID of the file containing the method to run (required) | |
| method | Yes | UUID of the method to execute (required) | |
| args | No | Arguments to pass to the method | |
| timeout | No | Execution timeout in seconds (default: 30, max: 60) | |
| benchmark | No | Enable benchmarking to measure execution time and memory usage |