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.
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": "getDiagnostics"
}
}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) |