get_ui_layout
Obtain the current Tkinter UI layout as hierarchical JSON, detailing widget class, ID, geometry, state, and text content.
Instructions
Get the current UI layout as hierarchical JSON.
Returns a JSON structure containing the complete widget tree with:
widget class names (Button, Label, Frame, etc.)
unique widget IDs
geometry (x, y, width, height)
widget state (normal, disabled)
text content where applicable
nested children
Use this to understand the current state of the GUI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |