validate_script
Check GDScript for compile errors before saving. Pass source code or res:// path to validate syntax and catch invalid API calls.
Instructions
Parse/compile GDScript WITHOUT writing it. Pass 'content' (source) or 'path' (res://). Returns whether it compiles â use before write_script to catch hallucinated APIs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | res:// path to validate an existing file | |
| content | No |