Inspect Ui Tree
inspect_ui_treeInspect a GUI app's semantic accessibility tree to retrieve its functional hierarchy, actionable elements, screen bounds, and process health for automation and testing.
Instructions
Inspects semantic accessibility tree and returns functional hierarchy + 1D interactive nodes.
Includes compact functional component hierarchy, actionable elements, screen bounds, and process health by default. Set include_raw_tree=True only when debugging raw AT-SPI nodes.
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": "inspect_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| max_depth | No | ||
| include_raw_tree | No | Include the unpruned raw AT-SPI node tree (D-Bus paths, layout wrappers). Defaults to False for a compact functional hierarchy and interactive elements. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||