Screenshot the game
screenshotCapture the game viewport as a PNG for canvas games and visual QA. Save it to a path instead of returning the image, or use live_view to let the user watch.
Instructions
PNG of the game viewport — canvas games, visual QA. Pass path to save it to disk instead of returning the image. One-shot: use live_view to let the user watch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Write the PNG here and return the path instead of the image. | |
| game_id | No | Session id from open_game. Omit when a single game is open. |