diagnostics
Retrieve current errors and warnings for a file, or for all open files with issues. Waits for fresh results after recent edits.
Instructions
Get current diagnostics (errors, warnings) for a file. If no file is specified, returns diagnostics for all currently open files with issues. Waits for fresh results after recent edits.
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 |
|---|---|---|---|
| file | No | Relative file path (optional — omit for all currently open files with diagnostics) |