diagnostics
Scan source files for compiler and linter errors and warnings, returning a token-capped, sorted summary with counts.
Instructions
Compiler/linter errors + warnings (semantic, via the language server) → a token-capped file:line:col severity [code]: message list, sorted error→hint with a count summary. The compact alternative to reading raw build/compiler output. Read-only; empty = clean. Default scope is ONE file (path); scope="directory" scans the project (a bounded set of code files — see VTS_DIAG_DIR_MAX).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Source file to check (or, with scope=directory, the subdirectory to scan; default = project root). | |
| scope | No | `file` (default) checks one `path`; `directory` scans the project for errors/warnings across files. | |
| projectPath | No | Project root (cwd). | |
| backend | No | Backend override; auto-detected. | |
| maxResults | No | Max diagnostics returned (default 60). |