get_ui_tree
Retrieve the UI tree of a running HarmonyOS app to inspect its layout and elements for automation or debugging.
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": "get_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | ||
| window_id | No | ||
| hdc_server | No | ||
| bundle_name | No |