add_widget
Adds a saved query's visualization to a dashboard as a widget, placing it below existing widgets and returning the widget and dashboard IDs.
Instructions
Add a saved query's visualization onto a dashboard as a widget. Behavior: places the widget below the existing ones (half-width widgets pair up side by side) and returns its id and dashboard_id. Usage: get the dashboard_id from list_dashboards or create_dashboard, and the visualization_id from get_query (each saved query exposes its visualizations) or from create_visualization for a new chart. This is how you build up a dashboard after creating it.
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>",
"visualization_id": "<visualization_id>"
},
"name": "add_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional text/markdown caption shown on the widget | |
| width | No | Widget width: 1 = half row, 2 = full row (default 1) | |
| dashboard_id | Yes | ID of the dashboard to add the widget to (from list_dashboards/create_dashboard) | |
| visualization_id | Yes | ID of the visualization to embed (from get_query's visualizations list or create_visualization) |