lsp_diagnostics
Retrieve cached language server diagnostics (errors, warnings) for a specific file to identify and address code issues.
Instructions
Get cached diagnostics (errors, warnings) for a file. Diagnostics come from language server notifications.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "lsp_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the source file | |
| severity_filter | No | Filter diagnostics by minimum severity | all |