watchDiagnostics
Poll for diagnostic changes after edits, waiting for LSP re-validation to return updated diagnostics.
Instructions
Long-poll for diagnostic changes. Use after edits to wait for LSP re-validation.
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": "watchDiagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Optional: only watch diagnostics for this specific file | |
| timeoutMs | No | Max wait time in milliseconds (default: 10000, max: 30000) | |
| sinceTimestamp | No | Only return if diagnostics changed after this timestamp (from a previous watchDiagnostics call) |