export_chart_png
Export a Datawrapper chart as a PNG image. Supports high-resolution output via zoom parameter. Use only when the user explicitly requests to see the chart.
Instructions
⚠️ DATAWRAPPER MCP TOOL ⚠️ This is part of the Datawrapper MCP server integration.
Export a Datawrapper chart as PNG and display it inline. The chart must be created first using create_chart. Supports high-resolution output via the zoom parameter. IMPORTANT: Only use this tool when the user explicitly requests to see the chart image or export it as PNG. Do not automatically export charts after creation unless specifically asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_id | Yes | ID of the chart to export | |
| width | No | Width of the image in pixels (optional) | |
| height | No | Height of the image in pixels (optional) | |
| plain | No | If true, exports only the visualization without header/footer | |
| zoom | No | Scale multiplier for resolution, e.g., 2 = 2x resolution | |
| transparent | No | If true, exports with transparent background | |
| border_width | No | Margin around visualization in pixels | |
| border_color | No | Color of the border, e.g., '#FFFFFF' (optional) | |
| access_token | No | Optional Datawrapper API token. When provided, uses the caller's account. When omitted, falls back to the server's DATAWRAPPER_ACCESS_TOKEN env var. |