ui_dump
Retrieve the current screen's full UI hierarchy in XML format to analyze and automate Android device interactions.
Instructions
Dump the full UI hierarchy of the current screen as XML.
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_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The UI hierarchy as a uiautomator XML document |