Convert Markdown to PDF
md_to_pdfConvert Markdown files or raw Markdown text to PDF files on disk using headless Chromium. Works offline without a Google account.
Instructions
Render a Markdown file (or raw Markdown text) to a PDF file on disk, using a headless Chromium render. No network or Google account needed.
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": {
"out_path": "<out_path>"
},
"name": "md_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (used in <title>) | |
| markdown | No | Raw markdown text to convert (alternative to markdown_path) | |
| out_path | Yes | Absolute path to write the output .pdf file to | |
| markdown_path | No | Absolute path to the .md file to convert |