get_ui_elements
Discover UI elements in the running game by retrieving all Control nodes with positions, sizes, and text, providing valid names and paths for click actions.
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[] with path/type/rect/visible plus optional text/disabled/tooltip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter by Control node type (e.g. "Button", "Label", "LineEdit") | |
| visibleOnly | No | Only return nodes where Control.visible is true (default: true). Set false to include hidden elements. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | ||
| elements | No | ||
| warnings | No |