Validate scripts
script_validateCatch GDScript errors before launching the game by parse-checking a single file or the entire project. Reports each error with file and line for quick fixes.
Instructions
Parse-check GDScript — one file or the whole project — and report errors with file and line. Run this after editing scripts and before running the game; it is much faster than launching.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "script_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Single script to check. Omit to check every .gd in the project. | |
| project | No | Godot project folder (the one with project.godot). Optional if the server was started with --project. |