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"
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 | |||