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).
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": "previewapk_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |