generate
Convert Mermaid markdown into PNG or SVG images with customizable themes, background colors, and output formats using the MCP server.
Instructions
Generate PNG image or SVG from mermaid markdown
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": {
"code": "<code>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The mermaid markdown to generate an image from | |
| name | No | Name of the diagram (optional) | |
| theme | No | Theme for the diagram (optional) | |
| folder | No | Absolute path to save the image to (optional) | |
| outputFormat | No | Output format for the diagram (optional, defaults to 'png') | |
| backgroundColor | No | Background color for the diagram, e.g. 'white', 'transparent', '#F0F0F0' (optional) |