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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "wait_for_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 |