Run Python Code
run_python_codeExecute Python code and return its output or error message for debugging and validation.
Instructions
Run the given Python code and return the output or error message.
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_python_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| inputs | No | ||
| check_types | No | ||
| script_name | No | main.py | |
| type_definitions | No |