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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "android_ui_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| compact | No |