wait_for
Pauses automation until on-screen text appears or disappears, an app is in front, or the screen settles, then reports success with elapsed time or timeout instead of guessing a delay.
Instructions
Wait until something happens on the screen, instead of guessing a delay: text appears (a page loaded, a message arrived), text goes (a spinner, "Sending…"), an app comes to the front, or the screen settles. Returns OK with how long it took, or TIMED OUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App name or package that should be in front | |
| gone | No | Text that should go | |
| text | No | Text that should appear | |
| settled | No | Until the screen stops changing | |
| timeout_ms | No | Default 8000, max 30000 |