Read Android UI tree
android_get_ui_treeRetrieve the current UIAutomator XML hierarchy from an Android device to locate visible UI controls; read-only, with optional ADB serial when multiple devices are connected.
Instructions
Return the current UIAutomator XML hierarchy for locating visible controls. Read-only.
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": "android_get_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ADB serial. Omit when exactly one device is ready. |