Validate a spec
validateCheck a spec, scene, or CSV before drawing: returns JSON with ok and actionable errors that each include a fix. Read-only and cheaper than render while shaping input.
Instructions
Check an input without drawing anything: a spec, scene or CSV. Returns JSON with ok and, on failure, errors that each carry a fix. Read-only, and cheaper than render while you are still shaping the spec. For a finished drawing use audit.
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": "validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | CSV, GeoJSON or Mermaid text, inline. Give exactly one of spec, scene, data or path. | |
| path | No | A spec, scene, CSV or Mermaid file on disk, instead of inline input. | |
| spec | No | The figure as a JSON object, inline, in the shape `describe <type>` prints. Give exactly one of spec, scene, data or path. | |
| type | Yes | Figure type: mermaid (data is Mermaid text), flow, arch, seq, schema, iso (3D layer stack), bar, line, scatter, geo, or any chart type that describe lists. | |
| scene | No | A v2 scene, inline: {"preset": "flow", "nodes": [...], "edges": [...], "groups": [...]}; type names its preset. Give exactly one of spec, scene, data or path. | |
| options | No | CLI flags without dashes, e.g. {"x": "month", "y": "signups", "group": "product", "title": "...", "highlight": ["Atlas"]}. describe lists them. Diagrams also take "style": a stylesheet object (or a list of them), "font": "Inter", and "fit": where the figure goes, "slide" (default), "page" or "column" (a narrow docs or notes column); describe style lists properties and selectors. |