Skip to Content

ui_wait

Wait until an element, text or window appears or is gone, or the screen is stable, for at most 30 s. A timeout is an answer (met: false), not an error.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
timeout_msintegernoGive up after this long (default 5000, at most 30000).
until`“element_gone”“text_gone”“element_appears”
valuestringnoWhat to look for, for the first five conditions.

Result

NameTypeRequiredMeaning
metbooleanyesThe condition held before the timeout.
waited_msintegeryes

Examples

{ "name": "ui_wait", "arguments": { "machine": "<machine>", "until": "<until>" } }

Limits

The call times out after 35 s (timed_out). Available since version 0.0.2. A refused or failed call returns one of the error codes.