wait_for
Wait for a screen to settle or a specified text/app to appear after triggering an action, so the next step reads a stable screen instead of a mid-animation one.
Instructions
Wait until something becomes true, instead of sleeping a fixed time.
Use this after an action that triggers loading, so the next step reads a settled screen instead of one mid-animation. With no arguments it waits for the screen to stop changing.
Args: text: Wait until this text appears anywhere on screen. app: Wait until this app (a name or a package id) is in the foreground. timeout_seconds: Give up and report the timeout after this long.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Wait until this app is in the foreground. | |
| text | No | The text to type, or the text to replace the clipboard with. | |
| timeout_seconds | No | Give up and report the timeout after this long. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |