app_wait_for
Wait for a CSS selector or text substring to become visible or hidden in the app window, handling async loading states and UI transitions without manual polling.
Instructions
Poll the running app window until a selector appears/disappears, or bodyText contains/loses a substring — for async loading states, toasts, or dialogs closing — instead of manually re-polling app_snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Substring of bodyText to wait on (mutually exclusive with selector) | |
| state | No | Wait for it to appear or disappear | visible |
| selector | No | CSS selector to wait on (mutually exclusive with text) | |
| timeoutMs | No |