diagnostics
Check code for compiler and linter errors and warnings, returning a compact sorted file:line:col severity list. Set scope to directory to scan the project; empty output means clean.
Instructions
Compiler/linter errors + warnings (semantic) → capped file:line:col severity [code]: message, sorted error→hint with a count — the compact stand-in for raw build output. Empty = clean. Default = one path; scope="directory" scans the project.
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": "diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File to check (or, with scope=directory, the subtree to scan; default = root). | |
| scope | No | `file` (default) | `directory` (scan project). | |
| backend | No | ||
| maxResults | No | ||
| projectPath | No |