convert_mermaid_to_jpeg
Convert Mermaid diagram files into JPEG images with configurable size, resolution, and quality. Specify input and optional output paths to generate a shareable image.
Instructions
Convert a mermaid diagram file to JPEG image
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": {
"input_file": "<input_file>"
},
"name": "convert_mermaid_to_jpeg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor for higher resolution (default: 2) | |
| width | No | Width of the mermaid canvas (default: 2400) | |
| height | No | Height of the mermaid canvas (default: 1600) | |
| quality | No | JPEG quality (1-100, default: 95) | |
| input_file | Yes | Absolute path to the input mermaid file | |
| output_file | No | Absolute path for the output JPEG file (optional) |