Dump UI Hierarchy
ui_dumpCaptures the current screen's UI view hierarchy as XML via UI Automator, so you can inspect displayed elements and understand exactly what an Android device is showing.
Instructions
Dump the current screen's UI hierarchy (view tree) as XML using UI Automator. Useful for understanding what's displayed on screen
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 |
|---|---|---|---|
| deviceId | No | Target device serial | |
| compressed | No | Use compressed format for smaller output |