mobile_dump_hierarchy
Retrieves the UI element tree of a mobile device to locate exact coordinates for automation, eliminating guesswork.
Instructions
Get the UI element tree, for finding coordinates instead of guessing.
Args: serialno: The mobile device serialno, from list_devices.
Returns: JSON envelope whose data.hierarchy holds the tree.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serialno": "<serialno>"
},
"name": "mobile_dump_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |