Convert Markdown File to PDF
convert_markdown_to_pdfConvert Markdown files to styled PDFs with configurable page size and margins, supporting local paths and URLs.
Instructions
Convert a markdown file to PDF
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": {
"markdownPath": "<markdownPath>",
"outputPath": "<outputPath>"
},
"name": "convert_markdown_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | PDF page format (default: A4) | |
| margin | No | PDF margins (e.g., '0.5in', '20mm') | |
| outputPath | Yes | Path where the PDF should be saved | |
| markdownPath | Yes | Path to the markdown file to convert (local path or URL) |