Get Ui Tree
get_ui_treeGet a compact accessibility tree of the current Android screen with class, id, label, flags, and bounds. Use it to inspect UI elements and guide 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 | |||