wait_for_window
Waits until a window matching a title pattern appears, so automation can continue after an action opens a dialog or new window.
Instructions
Wait until a window matching title_pattern appears. Returns null on timeout. Useful after triggering an action that opens a dialog.
title_pattern is a case-insensitive substring (not a regex), matched against the listed name and every top-level window title, so a window title works on macOS (listed by process name) and Linux too.
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": {
"title_pattern": "<title_pattern>"
},
"name": "wait_for_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| title_pattern | Yes |