Check with real Godot
godot_checkRun a Godot project headless to import, load every script and scene, compile all shaders, and optionally run frames; returns errors and warnings as res://file:line with printed output.
Instructions
Run Godot 4.7 headless on the project: import, load and instantiate every script and scene, compile every .gdshader, and optionally run the main scene (or scene) for run_frames frames and return what it printed (put print() calls in the code you test). Returns the errors and warnings as res://file:line, the totals and the printed output; an error result when Godot reports an error or is not installed. shaders: true also draws every shader on the GPU (needs a display or xvfb-run), for what only the driver rejects. Scenes and scripts are not changed: Godot updates its cache in .godot/, where the checker script also goes. Sends progress when the client asks for it; cancelling the call stops Godot. Slower than godot_review, so review first. compare_godot (a second Godot binary, or next for $GODOT_NEXT) runs the same check on a temporary copy and returns only the errors and warnings that differ, e.g. what breaks in a 4.8 beta. To drive input use godot_play; for unit tests godot_test.
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": "godot_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| scene | No | run this scene (a res:// path) instead of the main scene | |
| shaders | No | also draw every shader on the Compatibility renderer, for what only the GPU driver rejects (needs a display or xvfb-run) | |
| run_frames | No | also run the main scene for this many frames and return its output (default 0; 120 when scene is given) | |
| compare_godot | No | second Godot binary to diff against, or "next" for $GODOT_NEXT | |
| timeout_seconds | No | timeout per Godot run (default 600) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| frames | No | ||
| scenes | No | ||
| scripts | No | ||
| shaders | No | ||
| findings | Yes | ||
| warnings | Yes | ||
| truncated | Yes | ||
| shaderFiles | No | ||
| godotVersion | No |