Builtin Library
README.md
gui.elementTree
Inspect a screen's rendered element hierarchy. Every node carries its id, type, children, and — once the element has been measured — its on-screen bounds ({ x, y, w, h }), so you can find the id of a specific panel or widget and hand it to gui.captureElement for a tight screenshot. A node's id is the id set on the node when the author gave it one, otherwise the generated <screen>/<type>@<path>; nodes nest exactly as the widgets nest, with ui.defineWidget kinds expanded into the primitives they build.