adb_scroll_until
Repeatedly scroll the screen until a target element is found by text, resource ID, or content description. Supports directional scroll and automatic tap. Ideal for locating items in long lists.
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 |