check_types
Analyze Python code for type errors and inconsistencies using Pyright static analysis to identify potential bugs before runtime.
Instructions
Check types in a Python file or string of code.
Performs type checking using Pyright and returns diagnostics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Python code as string (mutually exclusive with file_path). | |
| file_path | No | Path to Python file (mutually exclusive with code). | |
| python_path | No | Optional path to Python interpreter. | |
| type_checker_mode | No | Type checking mode - "basic", "strict", or "overload" (default: "basic"). | basic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||