adb_ui_dump
Dump the current mobile UI hierarchy into structured element data with coordinates, text, and interaction flags. Supports text, TSV, and XML output formats.
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 |