Wait until text appears on screen
devilge_wait_for_textPoll the Android UI dump until a node with specified text appears. Returns match status and node details without throwing errors.
Instructions
Polls the UI dump until a node whose text or contentDescription matches appears, or the timeout elapses. Returns {matched, attempts, elapsedMs, matchedNode?}. Never throws — the caller branches on matched.
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": "devilge_wait_for_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to wait for. | |
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| contains | No | Substring match. Default true. | |
| timeoutMs | No | Max wait in ms (500..60000). Default 10000. |