java_get_diagnostics
Retrieve errors and warnings for a Java file using active LSP diagnostics or cached results.
Instructions
Get diagnostics (errors/warnings) for a file. This tool now attempts to pull diagnostics actively from the server if supported (LSP 3.17+), otherwise falls back to cached results from asynchronous publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file or a URI (e.g. jdt://...) |