get_screen_tree
Obtain a structured UI hierarchy of the current screen for understanding layout and choosing tap targets. Each node lists index, class, label, clickability, and coordinates, enabling precise action planning.
Instructions
Get an LLM-friendly indented UI hierarchy of the current screen. Each node shows: [idx] ClassName "label" [clickable] [x1,y1][x2,y2]. Use this to understand screen layout and pick which element to tap. Much more readable than raw XML — prefer this over get_elements() for planning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |