wait_for_text
Wait until specified text appears on the Android screen by periodically checking the UI hierarchy, with a configurable timeout. Avoids fixed waits and proceeds when content is ready.
Instructions
Var, amig egy adott szoveg megjelenik a kepernyon (ui_dump-ot ismetel).
Hasznos, hogy az agent ne 'tuti X masodpercet' varjon minden lepes utan, hanem tenylegesen addig probalkozzon, amig a keresett UI elem meg nem jelenik (pl. betoltodik egy oldal), de legfeljebb timeout_seconds-ig. Konkret elemre varashoz (resource-id/osztaly alapjan is) hasznald a 'wait_for_element' tool-t.
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 | ||
| serial | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |