lsp_diagnostics
Retrieve cached diagnostics for a specific file or the entire workspace. Automatically warms the cache when workspace-wide diagnostics are requested.
Instructions
Return cached diagnostics for a file or the whole workspace. Triggers warm-up if workspaceWide is requested and cache is empty.
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_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Absolute or workspace-relative path to a file. | |
| severity | No | Filter by severity. | all |
| maxResults | No | Maximum number of results to return. | |
| workspaceWide | No | If true, warm the workspace and return diagnostics for all files. |