get_ui_elements
Retrieve the unfiltered UI element tree from a window to access names, control types, automation IDs, and positions for automation tasks.
Instructions
Inspect the raw UIA element tree of a window — returns names, control types, automationIds, bounding rects, and interaction patterns. Each element includes viewportPosition ('in-view'|'above'|'below'|'left'|'right') relative to the window client region — use it to decide whether scroll_to_element is needed before clicking. Prefer screenshot(detail='text') for interactive automation (returns pre-filtered actionable[] with clickAt coords). Use get_ui_elements when you need the unfiltered tree or specific automationIds for click_element. Caveats: Large windows may return hundreds of elements — scope with windowTitle. Results are capped at maxElements (default 80, max 200) — increase if the target element is missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowTitle | Yes | Partial window title to find the target window | |
| maxDepth | No | Maximum depth of the element tree to traverse (default 4) | |
| maxElements | No | Maximum number of elements to return (default 80) |