Get UI tree
get_ui_treeDump the semantic view tree of a macOS window as JSON to inspect UI roles, labels, values, states, frames, and stable ids.
Instructions
Dump the semantic view tree of a window as JSON: roles, labels, values, enabled/focused state, frames, and stable ids. Use compact for a terse outline.
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 |
|---|---|---|---|
| window | No | Window id; defaults to the key window. | |
| compact | No | Return an indented outline instead of full JSON. |