scroll_until
Scrolls an Android screen incrementally until a specified element (by text, description, or ID) becomes visible, or until the scrollable container reaches its end.
Instructions
Scroll until a semantic target appears (or the scroll reaches its end).
Uses one-viewport-page scrolling and stops as soon as the container boundary is reached (no useless swipes at the end).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ADB serial; omit with a single connected device. | |
| target | Yes | {"by": "text"|"desc"|"id", "value": str} — the element to find. | |
| direction | No | "down" (default) | "up" | "left" | "right" — *content* direction ("down" searches content below the fold). | down |
| max_scrolls | No | scroll attempts before giving up (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||