android_ui_dump
Get the on-screen accessibility hierarchy as a table of tappable refs with text, class, and bounds, so you can tap by ref instead of guessing pixel coordinates.
Instructions
Dump the on-screen accessibility hierarchy as a table of tappable refs.
Each row gives a ref (n1, n2, ...) usable with android_tap, plus text, content-desc, class, centre point and bounds. Prefer this over guessing pixel coordinates.
Note: Jetpack Compose apps usually expose no resource-ids - match on text/content-desc. If a screen returns no nodes, fall back to android_screenshot and tap by x/y.
Args: device: Device serial; defaults to the first physical device. compact: Show only interactive/labelled nodes (recommended).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| compact | No |