Get Ui Tree
get_ui_treeRetrieves a compact accessibility tree from a device screen, including element class, ID, label, and bounds, to support screen reading for automation.
Instructions
Compact accessibility tree (class, id, label, flags C/L/E/S/K/P, bounds).
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": "get_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||