generate_mermaid_diagram
Create dynamic Mermaid diagrams and charts using Mermaid syntax. Input text definitions to generate diagrams in PNG, SVG, or Mermaid format with customizable themes and background colors. Ideal for enhancing documentation and visualizing complex processes.
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 |