Make a chart image
render_chartTurn numbers into a clean chart PNG: bar, horizontal_bar, stacked_bar, line, area, pie or donut. Returns the image, a link that works for a year (for emails, docs, Slack or markdown) and one-sentence alt text describing the data. Axes, number formatting, colors and labels are handled; pass the data and a title. Costs 1 credit.
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>"
},
"name": "render_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | landscape 1200x675 (default), og 1200x630, square 1080x1080, portrait 1080x1350, story 1080x1920. | |
| type | Yes | bar for comparing categories, line or area for change over time, stacked_bar for parts of a total over categories, pie or donut for shares of one total (6 slices max; the rest fold into Other), horizontal_bar for long category names. | |
| theme | No | ||
| title | No | What the chart shows, like 'Monthly revenue'. | |
| format | No | percent expects percentages: 12.5 means 12.5%. | |
| labels | No | One label per value: months, categories or slice names. | |
| locale | No | Like en-US or de-DE. | |
| series | No | Several series share the labels. null leaves a gap in a line. | |
| source | No | Footnote, like 'Source: Stripe'. | |
| values | No | For a single series. Use series instead for several. | |
| currency | No | ISO code like USD or EUR, with format currency. | |
| decimals | No | ||
| subtitle | No | Units, period or context, like 'USD, 2026'. | |
| highlight | No | A label to emphasize; the other bars or slices go gray. | |
| show_values | No | Force value labels on or off. By default they appear where they fit. |