validate_script
Validate GDScript syntax with Godot's headless parser. Catch errors in your script files before running the game.
Instructions
Validate a GDScript file for syntax errors using Godot's parser in headless mode. No running game needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"scriptPath": "<scriptPath>"
},
"name": "validate_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptPath | Yes | Path to the GDScript file to validate (relative to project, e.g., "scripts/player.gd"). | |
| projectPath | Yes | Path to the Godot project directory. |