dump_widgets
Inspect a QGIS window’s widget tree to map UI hierarchy and child geometry for plugin debugging; filter by visibility or named widgets to reduce noise.
Instructions
Dump the widget tree of a window (selector: objectName or title).
Hidden widgets are skipped by default (visible_only); use only_named to cut noise further. Geometry of child widgets is relative to the parent; window geometry is in screen coordinates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"window": "<window>"
},
"name": "dump_widgets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | Yes | ||
| max_items | No | ||
| only_named | No | ||
| visible_only | No | ||
| include_internal | No |