chart_render
Convert JSON chart configs or type, labels, and datasets into PNG images with Chart.js for bar, line, pie, doughnut, scatter, radar, polarArea, and bubble charts.
Instructions
Chart Rendering (Chart.js) — Render a chart to PNG from JSON: bar, line, pie, doughnut, scatter, radar, polarArea or bubble. Pass a full Chart.js config (config) or the shortcut type + labels + datasets [{label, data}] + title. Rendered with Chart.js in headless Chromium, no external requests. Params: config or type/labels/datasets, title, width and height (100 to 2000 px, default 800x500), background (CSS color, default white). Returns image_base64 (PNG). Cost: $0.009 USDC per call. Latency p99: 6000ms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chart_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| title | No | ||
| width | No | ||
| config | No | Full Chart.js configuration {type, data, options} | |
| height | No | ||
| labels | No | ||
| datasets | No | ||
| background | No | white |