Wait for a window
wait_for_windowWaits until a window matching a title, app_id, or class regex exists, then returns it. Use it to block until an expected GUI window appears before taking screenshots or sending input.
Instructions
Waits until a window whose title, app_id or class matches the regex exists. Returns the window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Display id from display_open. Optional when exactly one display is open. | |
| pattern | Yes | ||
| timeout_ms | No |