python_code
Execute Python code and retrieve its output. Use it to run scripts and test code snippets.
Instructions
This function will execute a python code 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": "python_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |