Wait for UI
wait_for_uiUse this when a desktop action must be followed by proof of an explicit native UI state or condition instead of sleeping or polling screenshots. Presence/absence waits need a semantic target; use state=changed for a broad tree change and set a bounded timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id returned by ui_snapshot or ui_find. Linux ids are stable per-process accessibility paths and legacy linux:<index> ids remain accepted. | |
| app | No | Limit matching to an application/process name substring when available. | |
| pid | No | Limit matching to one owning process id when available. | |
| name | No | Accessible name/title substring. | |
| role | No | Accessible role such as Button, Edit, textbox or AXButton. | |
| text | No | Text used by text_exists or active_window. | |
| label | No | Compact numeric label from the most recent ui_snapshot/ui_find; useful for repeated actions without repeating names or coordinates. | |
| state | No | changed captures the first matching semantic state and waits until it differs. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| poll_ms | No | Polling interval, 50..5000 ms. | |
| condition | No | Semantic condition to wait for; choose the condition that directly proves the requested state transition. | |
| timeout_ms | No | Maximum wait, capped at 120000 ms. | |
| browser_dom | No | Use native browser document accessibility where supported. | |
| window_title | No | Limit matching to a top-level accessibility window/frame title substring when available. | |
| automation_id | No | Windows AutomationId when available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Wait for UI structured result for wait_for_ui. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |