wait_for_text
Waits for specific text to appear on the screen during mobile UI tests, using configurable timeout and polling to verify visibility.
Instructions
Wait until specific text appears anywhere on the screen
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": {
"text": "<text>"
},
"name": "wait_for_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to wait for | |
| device_id | No | Target device ID. If omitted, uses the default device. | |
| timeout_ms | No | Maximum time to wait in milliseconds (default: 10000) | |
| poll_interval_ms | No | Polling interval in milliseconds (default: 500) |