Python type check (structured)
python_typecheckRun mypy on Python code and return structured type errors with file, line, column, message, and error code, making diagnostics easier to parse and act on.
Instructions
Run mypy and return structured type errors with file, line, column, message, and error code. Much more compact than raw mypy output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory | |
| paths | No | Specific path(s) to check; a string or array (default: '.') | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| errors | Yes | ||
| success | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes |