Run the game
run_projectRun a Godot project, scene, or SceneTree script in a window or headless; capture output and errors for debugging.
Instructions
Run the project (or one scene) in a window, wait a few seconds, and return the output and any errors. The game keeps running: use get_debug_output to read more output and stop_project to close it. Can also run a SceneTree script from the project (e.g. a headless test script).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Scene to run instead of the main scene, e.g. "res://levels/level_1.tscn". | |
| script | No | Run this project script (extends SceneTree or MainLoop) instead of a scene, e.g. "res://tests/run_tests.gd". | |
| headless | No | Run without a window (default false). Useful for tests and logic-only checks. | |
| userArgs | No | Extra arguments for the game, readable with OS.get_cmdline_user_args(). | |
| projectPath | No | Folder containing project.godot. Optional: defaults to the project Claude Code is running in. | |
| waitSeconds | No | Seconds to wait before returning the first output (default 3). |