get_widget_tree
Inspect the UI structure of a running PySide6 application by retrieving all visible windows and widget details as JSON, then use the returned widget IDs for further interaction.
Instructions
Get the full widget hierarchy of all visible windows as JSON. Each widget has: id, class, object_name, visible, enabled, geometry, text, children. Use widget IDs from this tree in other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |