Renderizar diagrama
render_diagramRender diagrams from source code using Kroki. Supports Mermaid, Graphviz, PlantUML, D2, and ERD, returning file path and base64.
Instructions
Renderiza source con Kroki. Engines: mermaid, graphviz (DOT), plantuml, d2, erd. Devuelve path del archivo y base64 (recortado en text si es grande).
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 |
|---|---|---|---|
| engine | No | mermaid | |
| format | No | png | |
| source | Yes | ||
| outputPath | No | Ruta de salida; default /tmp/diagram-studio/<timestamp>.<fmt> |