adb_scroll_until
Scroll Android screens repeatedly in a chosen direction until a target element is found, then optionally tap it. Use it to locate items in long lists or scrollable content.
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.
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": "adb_scroll_until"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| device | No | Device serial | |
| direction | No | Scroll direction (default 'down' = content moves up, revealing lower items) | down |
| maxScrolls | No | Maximum scroll attempts (1-50, default 10) | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) | |
| tapWhenFound | No | Automatically tap the element when found |