chart_from_data
Deterministic chart from records or CSV. Returns a Vega-Lite spec and/or a PNG. No LLM, nothing stored. Same request -> same sha256. Never reorders your data: bars/pies aggregate (sum) per category in first-appearance order; lines keep input order.
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": {
"x": "<x>"
},
"name": "chart_from_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | category or numeric column | |
| y | No | value column; required unless kind is histogram | |
| csv | No | CSV text, header row required | |
| data | No | records; or send csv | |
| kind | No | bar, line, area, point, step, histogram, pie | bar |
| title | No | ||
| width | No | ||
| format | No | both | |
| height | No | ||
| series | No | grouping column |