get_ui_elements
Retrieve UI elements from the running scene tree to discover valid click targets. Returns positions, sizes, types, and text of Control nodes.
Instructions
Walk the running scene tree and return all Control nodes with positions, sizes, types, and text content. Always call this before simulate_input click_element actions to discover valid element names and paths. Requires an active runtime session (run_project or attach_project). visibleOnly defaults true; pass false to include hidden Controls. filter narrows by class. Returns { elements: [{ name, path, type, rect, visible, text?, disabled?, tooltip? }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visibleOnly | No | Only return nodes where Control.visible is true (default: true). Set false to include hidden elements. | |
| filter | No | Filter by Control node type (e.g. "Button", "Label", "LineEdit") |