getDiagnostics
Retrieve diagnostics (errors and warnings) from linters like TS, ESLint, Pyright, and more. Filter by file path, severity, and limit results for efficient code analysis.
Instructions
Errors/warnings from TS, ESLint, Pyright, Ruff, Cargo, Go vet, Biome. Real-time LSP when ext connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Filter by file: absolute path, workspace-relative, or file:// URI. | |
| severity | No | Min severity to return. Order: error > warning > information > hint. Use 'error' for build-breaking only. | |
| maxResults | No | Max diagnostics to return (default: 100, max: 2000) | |
| topN | No | Keep only top-N diagnostics by severity. Sets truncated:true if reduced. |