wait_for
Waits for a selected device to meet a condition—such as visible text, element, foreground app, or readiness—or until timeout. Use it to synchronize automation with device state changes.
Instructions
Observe a selected device until a supported condition is met or the timeout expires. Conditions can check visible text, an element, foreground app, or readiness.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"condition": "<condition>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | ||
| device_id | No | ||
| timeout_ms | No | ||
| poll_interval_ms | No |