export_to_datawrapper
Export data to Datawrapper to create, publish, and receive embed URLs for professional cloud-hosted charts.
Instructions
Export data to Datawrapper for professional cloud-hosted charts.
Creates a chart on Datawrapper (datawrapper.de) with your data, publishes it, and returns embed URLs and embed code. Requires the DATAWRAPPER_ACCESS_TOKEN environment variable.
Get a free API token at: https://app.datawrapper.de/account/api-tokens
Supported chart types:
'd3-bars-vertical' — vertical bar chart
'd3-bars-horizontal' — horizontal bar chart
'd3-lines' — line chart
'd3-area' — area chart
'd3-pies' — pie chart
'd3-pie-donut' — donut chart
'd3-scatter' — scatter plot
'd3-table' — data table
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": {
"data": "<data>",
"title": "<title>"
},
"name": "export_to_datawrapper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | List of row dicts (from get_resource_data()) | |
| title | Yes | Chart title | |
| labels | No | Column name → display label mapping | |
| chart_type | No | Datawrapper chart type (default: d3-bars-vertical) | d3-bars-vertical |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||