get_ui_tree
Retrieve the current accessibility tree as structured text with reference markers for tapping or typing, providing a cost-effective alternative to screenshots for precise UI interaction.
Instructions
Get the current accessibility tree as structured text with [ref=eN] markers usable in tap/type_text. Much cheaper and more precise than a screenshot.
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 | Device id from list_devices. Optional when exactly one device is booted. | |
| filter | No | Default 'interactive' |