get_diagnostics
Retrieve errors and warnings for open files to identify syntax errors, type mismatches, and other issues. Without a file path, returns diagnostics for all open files.
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. |