test_take_screenshot
Capture a screenshot of the currently running Godot game to visually verify test scenarios and UI states in real-time.
Instructions
Capture a screenshot of the currently running game via file-based IPC with TestController. Requires the game to already be running (use run_project or test_run_scenario first). Works with autoloads and real scenes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Optional: poll timeout in ms (default: 10000) | |
| outputPath | No | Optional: where to save PNG (res:// or project-relative). Default: .mcp_screenshots/capture_<id>.png | |
| projectPath | Yes | Path to the Godot project directory |