get_diagnostics
Check GDScript files for syntax errors, type errors, and code quality issues using Godot's Language Server. Analyze individual .gd files to identify programming problems and improve code reliability.
Instructions
Retrieve errors, warnings, and diagnostic messages for a GDScript (.gd) file from the Godot Language Server. Returns syntax errors, type errors, and code quality issues. Fast operation (<1s). Use this to check individual .gd files for problems. For workspace-wide scanning, 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. |
Input Schema (JSON Schema)
{
"properties": {
"file_path": {
"description": "Absolute path to the GDScript (.gd) file to analyze for errors, warnings, and issues.",
"type": "string"
}
},
"required": [
"file_path"
],
"type": "object"
}