describe_ui
Retrieve the current screen's UI hierarchy as a compact JSON list, including text, content descriptions, resource IDs, bounds, and tap centers, to identify interactive elements for UI automation.
Instructions
Get the UI hierarchy of the current screen as a compact JSON list with text, content descriptions, resource IDs, bounds and tap centers (pixels). By default only elements with text/desc or that are interactive are returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| raw_xml | No | Return the raw uiautomator XML instead | |
| include_all | No | Include every node, not just interesting ones |