get_ui_tree
Read the desktop accessibility tree as compact text with [ref] numbers to identify and interact with UI elements precisely without screenshots or coordinate guessing.
Instructions
读取桌面无障碍元素树(结构化文本),这是感知屏幕的首选方式,不要默认用 screenshot。返回紧凑文本树,每个可操作元素带 [ref] 编号,后续用 click(ref)/type_text(ref) 精确操作,无需估算坐标。scope=active_window 最省 token(默认);找特定应用用 scope=app+app=名字关键词;整桌面用 scope=desktop(大,慎用)。interactive_only=true 只列可操作元素,进一步省 token。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| scope | No | active_window | |
| max_nodes | No | ||
| interactive_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |