Screenshot the game
screenshotCapture a PNG of the game viewport for visual QA. Pass a path to save to file; returns path instead of image. One-shot: use live_view for live play.
Instructions
Take a PNG screenshot of the game viewport. Useful for canvas/image-driven games and visual QA. Pass path to save it to a file (returns the path instead of the image). One-shot: this is not a live view — to let the user watch the game, call live_view once instead of taking screenshots repeatedly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional output file path; when set, the PNG is written there and only the path is returned. | |
| game_id | Yes | Session id returned by open_game. |