Render a diagram from text
render_diagramTurn diagram-as-code into an image: Mermaid, PlantUML, Graphviz/DOT, C4, Excalidraw and 20+ more (self-hosted Kroki). Returns a hosted SVG/PNG URL you can embed directly in Markdown or HTML. Example — GET "https://ainetcafe.com/t/render_diagram?source=graph TD;A--%3EB&format=png"
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": {
"source": "<source>"
},
"name": "render_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Diagram language: mermaid (default), plantuml, graphviz, c4plantuml, excalidraw, blockdiag, erd… | |
| format | No | "svg" (default) or "png". | |
| source | Yes | The diagram source code (e.g. a Mermaid flowchart). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||