The generate tool accepts the following parameters in its input schema:
{
"properties": {
"code": {
"type": "string",
"description": "The mermaid markdown to generate an image from"
},
"theme": {
"type": "string",
"enum": ["default", "forest", "dark", "neutral"],
"description": "Theme for the diagram (optional)"
},
"backgroundColor": {
"type": "string",
"description": "Background color for the diagram, e.g. 'white', 'transparent', '#F0F0F0' (optional)"
},
"outputFormat": {
"type": "string",
"enum": ["png", "svg"],
"description": "Output format for the diagram (optional, defaults to 'png')"
},
"name": {
"type": "string",
"description": "Name of the diagram (optional, or required if CONTENT_IMAGE_SUPPORTED=false)"
},
"folder": {
"type": "string",
"description": "Absolute path to save the image to (optional, or required if CONTENT_IMAGE_SUPPORTED=false)"
}
},
"required": ["code"]
}