get_diagnostics
Analyze GDScript files for syntax errors, type issues, and code quality problems using Godot's native LSP.
Instructions
Check GDScript files for errors after editing or when analyzing code. Returns syntax errors, type errors, undefined variables, missing functions, and code quality issues from Godot LSP (<1s). Use this tool when: user references .gd files, requests GDScript modifications, or reports code errors. For workspace-wide validation, use scan_workspace_diagnostics instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the GDScript (.gd) file to analyze for errors, warnings, and issues. |