chart_export
Convert a Vega-Lite JSON spec to SVG, PNG, or self-contained interactive HTML. Prevents overwriting the spec file when saving output.
Instructions
Render an existing .vl.json to svg, png, or SELF-CONTAINED interactive html (vega js inlined — opens in the browser, works offline). Refuses an out_path that collides with the spec (charter).
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": {
"spec_path": "<spec_path>",
"out_path": "<out_path>"
},
"name": "chart_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| out_path | Yes | ||
| spec_path | Yes | ||
| image_format | No | svg |