Wait for an element
wait_forPause execution until an element matching label/value text or role appears, or with gone=true disappears, then return a fresh observation.
Instructions
Wait until an element whose label or value contains text (optionally of a role) appears, or disappears with gone=true. Returns a fresh observation.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| gone | No | Wait until the element disappears instead | |
| text | No | Wait for an element whose label or value contains this | |
| ref_role | No | Only elements of this role (e.g. 'button') | |
| window_id | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||