get_ui_dump
Retrieve the Android UI view hierarchy in XML format to analyze screen structure and identify elements.
Instructions
获取 XML 格式的 UI 视图层级,用于理解屏幕结构和定位元素。
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": {
"returned_attributes": "<returned_attributes>"
},
"name": "get_ui_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| returned_attributes | Yes | 要返回的属性列表(逗号分隔),例如 'bounds,class,text,clickable,resource-id'。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |