check_python
Checks a Python file for syntax errors using py_compile. Provide the file path to validate code and catch errors before execution.
Instructions
Check for syntax errors in a Python file using py_compile.
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": {
"filePath": "<filePath>"
},
"name": "check_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envPath | No | Optional: Custom PATH environment variable. If not provided, uses system default PATH. | |
| filePath | Yes | The full path to the Python file. |