Test Python tool
test_python_toolRun a Python tool you made, once, as the editor's Test button runs it (the same sandbox and limits, the variables a person gave it), with args_json as its arguments. Answers its exit code, output and errors; a run that fails answers as an error, to fix with create_python_tool and test again. Use it to prove the tool before you say it works.
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": {
"name": "<name>"
},
"name": "test_python_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The Python tool's name | |
| args_json | No | JSON object of the arguments, e.g. '{"path": "sales.csv"}' |