smart_scroll
Scroll through screens to collect and return every element matching the target, with positions, aggregating matches across the scroll budget instead of stopping at the first hit.
Instructions
Scroll and AGGREGATE every matching element across the screens passed.
Unlike scroll_until (first hit), smart_scroll visits each screen in the scroll budget and returns ALL matches with their positions. Reuses the one-viewport-page scrolling + end detection; on tree-failed screens the OCR layer is aggregated for free.
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 |
| session_id | No | ||
| max_scrolls | No | scroll budget before giving up (default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||