getDiagnostics
Retrieve real-time errors and warnings from TypeScript, ESLint, Pyright, Ruff, Cargo, Go vet, Biome, or LSP. Filter by file, severity, or result count to diagnose build and code issues.
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. | |
| topN | No | Keep only top-N diagnostics by severity. Sets truncated:true if reduced. | |
| 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: 500) |