Validate script
godot_validate_scriptCheck a GDScript file for parse and compile errors without running the game, using headless validation.
Instructions
Parse a GDScript file headlessly with --check-only and report any parse/compile errors without running the game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | A resource path, e.g. "res://main/player.tscn" or "main/player.tscn". | |
| version | No | Godot version to use, e.g. "4.7", "4.7-stable", "stable"/"latest". Defaults to the project's declared version, then the latest stable release. | |
| project_root | No | Path to the Godot project root (folder containing project.godot). Defaults to $GODOT_PROJECT_ROOT or an upward search from the working directory. | |
| response_format | No | Output format. "markdown" is human-readable; "json" is structured. | markdown |