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.
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. |