render
Validate and render Mermaid diagrams to PNG or SVG from source or structured JSON IR, returning the Mermaid source and image. Fails on render errors.
Instructions
Validate and render a diagram with Mermaid CLI 12. Pass ir (preferred) or Mermaid source. Returns the Mermaid source plus PNG image (and SVG if requested). Fails on render errors.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ir | No | ||
| theme | No | ||
| source | No | ||
| target | No | ||
| formats | No | ||
| save_dir | No |