lsp_wait_for_diagnostics
Wait for diagnostics to arrive after syncing a document or external edit. Use it to synchronize agent workflows with language server analysis.
Instructions
Wait for diagnostics to arrive after a document sync or external edit. Useful for agent synchronization loops.
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": "lsp_wait_for_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | File path to wait for diagnostics on. Omit for workspace-wide. | |
| settleMs | No | Quiet period after first event in ms. | |
| timeoutMs | No | Max wait time in ms. | |
| workspaceWide | No | Wait for any diagnostic event workspace-wide. |