validate_script
Checks a GDScript file for syntax and type errors in headless mode without running the project, helping catch issues before execution.
Instructions
Check a GDScript file for syntax/type errors (headless, no run)
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 | GDScript file path relative to project (e.g. "scripts/player.gd") | |
| projectPath | Yes | Godot project path |