get_ui_elements
Walk the live Godot scene tree to return all Control nodes with positions, sizes, types, and text, so you can identify valid UI elements before simulating clicks.
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 |