wait_for_element_gone
Poll the UI tree until a matching element disappears from the screen, so you can wait for loading indicators, skeletons, or dialogs to clear before proceeding.
Instructions
Poll the UI tree until an element matching the criteria disappears from screen. Useful for waiting until loading indicators, skeletons, or dialogs go away.
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_element_gone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| observe | No | Capture screen state after element disappears. Default: none | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| text_exact | No | Wait for element with this exact text to disappear | |
| timeout_ms | No | Maximum time to wait in ms. Default: 30000 — spinners backed by a slow request routinely outlast 10s | |
| resource_id | No | Wait for element with this resource_id substring to disappear (case-insensitive) | |
| text_contains | No | Wait for element with this text substring to disappear (case-insensitive) | |
| type_contains | No | Filter by element type containing this substring (case-insensitive) | |
| poll_interval_ms | No | Polling interval in ms. Default: 500 |