run_code
Execute Python code interactively to get stdout, results, and PNG images for quick experiments. Use for short tasks, not long training runs.
Instructions
Execute Python on the runtime; returns stdout/results plus any PNG images.
For quick, interactive work. Do NOT run long training here — it will hit the timeout. Use launch_training for anything that takes minutes.
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": "run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |