generate_mermaid_svg
Convert Mermaid diagram syntax to SVG files with customizable themes and background colors for visual documentation.
Instructions
Generate SVG content from Mermaid diagram syntax and save it to a file. This tool renders Mermaid diagrams to SVG format with customizable themes and background colors, always saving the result as an SVG file.
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": {
"mermaid": "<mermaid>"
},
"name": "generate_mermaid_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mermaid | Yes | The mermaid diagram syntax to be rendered as SVG | |
| theme | No | Theme for the diagram | default |
| backgroundColor | No | Background color for the diagram (CSS color value) | white |
| filename | No | Optional filename for the SVG file (without extension) |