adb_scroll_until
Scroll through long lists or scrollable content until a target element is found, then optionally tap it. Automates repeated swiping and UI hierarchy checks to locate elements by text, resource ID, or content description.
Instructions
Scroll the screen repeatedly until a target element is found. Performs a swipe gesture, then checks the UI hierarchy for the target. Repeats until found or max iterations reached. Useful for finding elements in long lists or scrollable content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) | |
| direction | No | Scroll direction (default 'down' = content moves up, revealing lower items) | down |
| maxScrolls | No | Maximum scroll attempts (1-50, default 10) | |
| tapWhenFound | No | Automatically tap the element when found | |
| device | No | Device serial |