repair_dashboard_chart_refs
Repairs stale chart IDs in a dashboard's layout by replacing orphaned chart references using matching names or removing them, with a dry-run option to preview changes.
Instructions
Repair stale chart IDs in a dashboard's layout metadata.
This tool syncs position_json and json_metadata.chartsInScope by
replacing or removing orphaned chart references.
Args: dashboard_id: Dashboard ID to repair strategy: 'replace_by_name' (default) maps stale chart IDs to currently attached charts with matching names; or 'remove_orphans' to drop stale references only. dry_run: If True, preview detected changes without updating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes | ||
| strategy | No | replace_by_name | |
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |