generate_mermaid_diagram
Creates dynamic diagrams and charts using Mermaid syntax for visualizing complex workflows, structures, and relationships easily. Supports PNG, SVG, and Mermaid outputs with customizable themes and background colors.
Instructions
Generate mermaid diagram and chart with mermaid syntax dynamically. Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backgroundColor | No | Background color for the diagram (optional). Default is 'white'. | white |
mermaid | Yes | The mermaid diagram syntax used to be generated, such as, graph TD; A-->B; A-->C; B-->D; C-->D;. | |
outputType | No | The output type of the diagram. Can be 'png', 'svg' or 'mermaid'. Default is 'png'. | png |
theme | No | Theme for the diagram (optional). Default is 'default'. | default |