Wait for the game
waitPause playtesting for milliseconds, until specified text appears, or for the page to settle, then return the updated observation. Use for timed passages and animations.
Instructions
Wait for time (ms), for a text to appear, and/or for the page to settle, then return the new observation. Useful for timed passages and animations. Returns text; pass format:"json" for a JSON string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | Milliseconds to wait. | |
| format | No | Output format: "text" (default, human-readable) or "json" (JSON string for programmatic use). | |
| game_id | Yes | Session id returned by open_game. | |
| for_text | No | Wait until this text appears anywhere on the page (up to timeout_ms). | |
| timeout_ms | No | Timeout for for_text (default 15000). |