get_diagnostics
Retrieve diagnostics including errors, warnings, and notes for a C++ source file. Optionally force re-parsing to get the latest results.
Instructions
Get diagnostics (errors, warnings, notes) for a file
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": "get_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the source file | |
| force_refresh | No | Force re-parsing of the file to get latest diagnostics (default: false) |