Change a dashboard
change_dashboardApplies edits to a dashboard and saves the result as its next version. The workspace owner decides whether assistants' dashboard changes wait as a DRAFT for a person to accept in Data Studio (the default) or apply at once; the answer's draft field says which happened, so say it waits for them only when draft is true. Every edit is checked, and nothing is saved if one is wrong; the answer says which. The answer gives the version number. Every version is kept, so undo_dashboard puts the one before back.
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": {
"dashboard_id": "<dashboard_id>",
"edits": "<edits>",
"summary": "<summary>"
},
"name": "change_dashboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | The version to apply the edits to (one of your drafts, to build on it). Left out: the current version. | |
| edits | Yes | The edits, applied in order. Each edit is one object with its op: add-panel { panel }, replace-panel { panel } (same id), remove-panel { panelId }, move-panel { panelId, layout }, set-title { title, description? }, set-range { range }, set-filters { filters }, set-projects { projects }. A dashboard document is { schemaVersion: 1, title, description, projects: "all" or [project ids], range: { kind: "last", amount, unit: hour|day|week|month } or { kind: "between", from, to }, filters: [{ dimension, op, values }], panels: [...] }. Each panel has a unique id, a title, layout { x, y, w, h } on a 12-column grid, filters (a list, may be empty) and its kind: number { metric, compare }, trend { metrics (1 to 3), grain }, bars { metric, dimension, limit }, table { metric, dimension, limit }, note { text }. Metric and dimension ids come from list_dashboard_metrics; read_dashboard shows a real document to copy from. | |
| summary | Yes | One line saying what changed, as the history shows it, such as “Added a leads by country table”. | |
| as_draft | No | true: save it as a draft for a person to accept even where your changes may apply at once (to propose rather than change). | |
| dashboard_id | Yes | The dashboard's id (list_dashboards gives them, dsh_...). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |