chart
chartCreate, read, and update persistent ECharts, Three.js, or Excalidraw visualizations; revision-aware updates preserve manual edits, and users can view fullscreen and download.
Instructions
Create, read and update persistent ECharts, Three.js or Excalidraw charts. Read the API index and relevant modules (three for 3D, excalidraw for diagrams) before create. Users can edit data, go fullscreen and download charts. Read the latest chart before update and pass expectedRevision to preserve manual changes.
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": {
"action": "<action>",
"reason": "<reason>"
},
"name": "chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maps | No | Optional GeoJSON or SVG maps registered before rendering. | |
| limit | No | For action=api index pagination. | |
| query | No | For action=api: omit for the index or pass an exact module id returned by the index. | |
| title | No | Accessible title rendered with the chart. | |
| action | Yes | Read API guidance, create a chart, read its latest saved data, or update it using expectedRevision. | |
| engine | No | Defaults to echarts. Read module three for 3D or excalidraw for editable diagrams. | |
| height | No | Rendered height in pixels. Defaults to 380. | |
| offset | No | For action=api index pagination. | |
| option | No | For create/update: complete JSON option for the chosen engine. ECharts formatter must be a string template, never a function-source string; omit it for default tooltips. Read module three for 3D, or excalidraw for diagrams. Excalidraw: elements is an array; appState is an object; omit files unless using image elements. files is a resource object keyed by fileId, never a string or array. | |
| reason | Yes | Concise reason for this tool call. | |
| chartId | No | ||
| renderer | No | ECharts renderer. Defaults to canvas. | |
| description | No | Accessible plain-language chart summary. | |
| expectedRevision | No | For update: revision returned by the latest read; prevents overwriting manual edits. |