Preview chart
preview_chartDatawrapper: render the current state of a chart as PNG (desktop or mobile width, light or dark, optionally only the chart without title, description and footer) to check it visually. Cached per chart version; each new render uses 1 export from the monthly quota. In clients that support MCP Apps the result opens in an interactive chart viewer.
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": {
"chart_id": "<chart_id>"
},
"name": "preview_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dark | No | Render in dark mode. | |
| plain | No | Only the chart, without header (title, description) and footer (notes, source). | |
| width | No | Width in px (default 600; ~360 to check mobile). | |
| chart_id | Yes |