render_chart
Generate visual charts from Chart.js JSON data, converting specifications into PNG, SVG, or WebP images for data visualization in chat interfaces.
Instructions
Render a chart from a Chart.js JSON specification. Returns the chart as an inline image. Supports line, bar, pie, doughnut, radar, and polarArea chart types.
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": {
"type": "<type>",
"labels": "<labels>",
"datasets": "<datasets>"
},
"name": "render_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Chart type | |
| labels | Yes | X-axis labels or category names | |
| datasets | Yes | One or more datasets | |
| width | No | ||
| height | No | ||
| title | No | Chart title | |
| format | No | png |