adb_ui_dump
Dump the current Android UI hierarchy as structured element data with coordinates, text, and interaction flags. Supports text, TSV, or XML output for analysis.
Instructions
Dump the current UI hierarchy. Parses the view tree into structured element data with coordinates, text, resource IDs, and interaction flags. Use format='tsv' for token-efficient compact output, format='xml' for raw uiautomator XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clickableOnly | No | Only show clickable/interactive elements | |
| format | No | Output format: 'text' (default, human-readable), 'tsv' (tab-separated, token-efficient), 'xml' (raw uiautomator XML) | text |
| device | No | Device serial |