describe_ui
Retrieve the current screen's UI hierarchy as a compact JSON list, including text, content descriptions, resource IDs, bounds, and tap centers, to identify interactive elements for UI automation.
Instructions
Get the UI hierarchy of the current screen as a compact JSON list with text, content descriptions, resource IDs, bounds and tap centers (pixels). By default only elements with text/desc or that are interactive are returned.
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": "describe_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| raw_xml | No | Return the raw uiautomator XML instead | |
| include_all | No | Include every node, not just interesting ones |