ui_wait
Polls a window until a control containing specified text appears or disappears, replacing fixed sleeps in Windows UI automation.
Instructions
Poll a window until a control containing text appears (or, with gone, disappears). Use instead of sleeping.
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": "<title>",
"text": "<text>"
},
"name": "ui_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gone | No | wait for it to disappear | |
| text | Yes | text to wait for | |
| title | Yes | part of the window title (case-insensitive; an exact title wins) or a handle from list_windows (0x...) | |
| timeout_ms | No | default 10000 |