take_screenshot
Render a Godot scene headlessly and capture a screenshot as PNG. Use for standalone scenes without autoload dependencies.
Instructions
Render a scene headlessly via --script and capture a PNG. Best for standalone scenes without autoload deps. For real game scenes, prefer test_take_screenshot against a running game.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Path to the scene file (relative to project) | |
| outputPath | No | Optional: where to save PNG (user:// or res:// or project-relative). Default: user://screenshot.png | |
| projectPath | Yes | Path to the Godot project directory |