smartsuite_normalize_dashboard_widgets
Normalize dashboard widgets by resetting them to natural per-type sizes and re-stacking overlapping widgets, with dry-run preview before applying.
Instructions
Repair a dashboard's widgets: reset them to their natural per-type size and/or re-stack them to remove overlaps. Requires readwrite/admin mode AND SMARTSUITE_ENABLE_SCHEMA_WRITE=true. Fixes dashboards built with wrong sizes (e.g. metric cards left too tall — which re-saving in the UI does not correct) or with widgets piled on top of each other (all near position (0,0), so they overlap and hide each other). Dry-run preview (before→after per widget) unless confirm:true. SIZE: by default HEIGHT is normalized; dimension:"both" also fixes width; restrict with widgetTypes (e.g. ["summary-card-widget"]). REFLOW: pass reflow:true to re-lay-out the tab — widgets sharing the same current row (same position_y) are kept side-by-side, and rows are stacked top-to-bottom by their tallest widget so nothing overlaps (reflow repositions ALL widgets on the tab, regardless of widgetTypes). Use tabId to limit to one tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Optional: only affect widgets on this tab. | |
| reflow | No | Re-stack widgets top-to-bottom to remove overlaps (preserves each row's side-by-side columns). Default false. | |
| confirm | No | Set true to apply; otherwise returns a dry-run preview of the changes. | |
| dimension | No | "height" (default) fixes height only; "both" also fixes width. | |
| dashboardId | Yes | The dashboard (report) ID. | |
| widgetTypes | No | Optional: only resize these widget types (e.g. ["summary-card-widget"]). Does not limit reflow. |