check_script
Compile-check a GDScript file in a Godot project to identify parse errors and warnings without running the game.
Instructions
Parse/compile-check a GDScript file using Godot --check-only. Returns parse errors/warnings without running the game.
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": "check_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scriptPath | Yes | Path to the .gd file to check (relative to project) |