adb_get_ui_hierarchy
Retrieves the current Android UI hierarchy as XML to inspect on-screen elements and find their coordinates.
Instructions
Get the current UI hierarchy (XML) to inspect elements and find coordinates.
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": "adb_get_ui_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | No |