diagramport
v0.1.0Generate Mermaid diagrams and charts from Mermaid syntax, validated locally.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_mermaid_diagram
Generate mermaid diagram and chart with mermaid syntax dynamically.
| Parameter | Type | Description |
|---|---|---|
mermaid * | string | The mermaid diagram syntax used to be generated, such as, graph TD; A-->B; A-->C; B-->D; C-->D;. |
backgroundColor | string | Background color for the diagram (optional). Default is 'white'. |
outputType | string | The output type of the diagram. Can be 'base64', 'svg', 'mermaid', 'file', 'svg_url', or 'png_url'. Default is 'base64'. 'base64' returns PNG image as base64 encoded string. 'file' saves the PNG image… |
theme | string | Theme for the diagram (optional). Default is 'default'. |