tap
Interact with UI elements by reference, selector, or coordinates. Re-resolves references, scrolls to find off-screen elements, and returns a diff.
Instructions
Tap an element by [ref=eN] from get_ui_tree/wait_for, by selector, or by x/y. Refs re-resolve against the live tree; if the element is gone you get the current tree instead of a blind tap. With scroll:true, a selector that isn't on screen is searched for by scrolling through the content first. Returns a mini-diff of what the tap changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | ||
| device | No | Device id from list_devices. Optional when exactly one device is booted. | |
| scroll | No | Scroll to find the selector if it's not currently visible | |
| selector | No |