previewapk_hierarchy
Get the current screen as a UI element tree to find elements, read values, and check state without taking a screenshot.
Instructions
Get the current screen as a UI element tree (class, text, content-desc, resource id, bounds, center coordinates, state flags) instead of pixels. Much faster and cheaper than a screenshot for navigation and assertions: find elements, read values, check state. Use previewapk_screenshot for visual checks (layout, overlap, images).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |