Wait for an element
wait_for_ui_elementWaits for a UI element such as a page, dialog, or button to appear and returns it, or null on timeout. Waits for a not-yet-running app too.
Instructions
Wait until an element shows up (a page loaded, a dialog opened, a button enabled), and return it; null if it doesn't within the timeout. An app that isn't running yet is waited for too.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_ui_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app, by name, bundle identifier or path. The app in front by default. | |
| name | No | A part of its name, label or text, in any case. | |
| role | No | What it is: 'button', 'text field', 'link'... | |
| timeout_seconds | No | How long to wait at most, in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | The element. Null when there's none. |