desktop_elements
Enumerate UI controls in a window via UI Automation to reliably locate specific elements like buttons by name, type, or AutomationId rather than guessing coordinates.
Instructions
元素级结构通道:枚举一个窗口内的 UI 控件(UI Automation)。 返回控件名称、类型(Button/Edit/...)、AutomationId、坐标矩形、是否可 Invoke。 适合定位"确定按钮"这类具体控件,比只按坐标猜可靠得多。 注意:Electron / Chromium 类应用默认不暴露控件树,会返回很少或 0 个 (这类需要用 CDP,即路线图 Week 5-6)。原生 Windows 应用正常。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | 窗口句柄,来自 desktop_list_windows / desktop_perceive | |
| maxElements | No | 最多返回多少个,默认 300 |