dump_ui
Return the current Android UI Automator hierarchy as XML, enabling UI inspection and automated testing.
Instructions
Return the current Android UI Automator hierarchy as XML when supported by the device.
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": "dump_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No | ADB serial such as emulator-5554, a USB serial, or host:port. If omitted, the active device is used; a sole ready device is selected automatically. |