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.
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 | |||