Get diagnostics
nvim_diagnosticsRetrieve LSP diagnostics for a buffer or all buffers to quickly identify and fix errors and warnings.
Instructions
Return LSP/diagnostic entries (errors, warnings, etc.) for a buffer, or for all buffers if none is given. Great for letting the agent see and fix problems the way Cursor does.
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": "nvim_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bufnr | No | Buffer number. Omit for all buffers. |