run_and_capture
Run a Godot project for a set duration, capture a screenshot, and stop automatically. Use for full-game screenshots without manual interaction.
Instructions
Run the project for a duration, capture a screenshot, then stop. Runs the full game (unlike capture_screenshot) without needing run_interactive (unlike game_screenshot). Requires a display server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Optional: Specific scene to run | |
| duration | No | How long to run the game in seconds before capturing (default: 3) | |
| outputPath | No | Path where the screenshot PNG will be saved. Defaults to "<projectPath>/screenshots/capture.png". | |
| projectPath | Yes | Path to the Godot project directory |