iOS scroll to element
ios_scroll_to_elementScroll the screen until a UI element with the given label becomes visible, then return its coordinates. Eliminates multi-swipe guesswork for off-screen content. Requires an active iOS automation session (auto-starts if needed). On a device set to direct-input-only it needs no session: it scrolls to the named element and reports verified (whether the landing was confirmed; treat false as unconfirmed and screenshot) but returns NO coordinates. Pass input:"session" to force the session path.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| input | No | Scroll path. 'auto' (default) follows the device's mode: direct-input-only devices scroll without a session (no coordinates returned). 'session' forces the automation-session scroll, which returns coordinates. 'hid' forces the session-free scroll. | |
| label | Yes | Accessibility label or text of the element to scroll to | |
| direction | No | Scroll direction (default: down) |