convert_md_to_jpeg
Convert Markdown files to JPEG images with configurable dimensions, scale, and quality, preserving Mermaid diagrams for sharing or embedding.
Instructions
Convert a markdown 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_md_to_jpeg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor for mermaid diagrams (default: 2) | |
| width | No | Width of the output image (default: 2400) | |
| height | No | Height of the output image (default: 1600) | |
| quality | No | JPEG quality (1-100, default: 95) | |
| input_file | Yes | Absolute path to the input markdown file | |
| output_file | No | Absolute path for the output JPEG file (optional) |