get_diagnostics
Retrieve errors and warnings for code files to identify syntax errors, type mismatches, and other issues detected by the language server. Returns diagnostics for all open files if no file path is provided.
Instructions
Get diagnostic messages (errors, warnings) for files. Use this tool to identify problems in code files such as syntax errors, type mismatches, or other issues detected by the language server. When used without a file_path, returns diagnostics for all open files. Requires files to be opened first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to the file to get diagnostics for. If not provided, returns diagnostics for all open files. |