ui_tree
Dump and parse the Android screen UI hierarchy into compact clickable/text nodes with center coordinates, or return only added, changed, and removed nodes as a delta since the previous snapshot.
Instructions
Dump and parse the current Android screen UI hierarchy into compact clickable/text nodes with center coordinates (cx,cy). Set onlyChanged=true to return a delta diff (+/~/-) against the previous snapshot.
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": "ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| onlyChanged | No | When true, return only added (+), changed (~), and removed (-) nodes since the previous ui_tree snapshot. |