Render Markdown to PDF
render_pdfConvert Markdown files into styled PDFs deterministically using a headless Chromium browser—no LLM involved—so you can generate consistent documents from .md sources.
Instructions
Deterministically convert a Markdown file to a styled PDF using a headless Chromium-based browser (no LLM involved). Both paths must be under the server's allowed roots.
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": {
"markdown_path": "<markdown_path>",
"output_path": "<output_path>"
},
"name": "render_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (defaults to the file name) | |
| overwrite | No | ||
| output_path | Yes | Absolute path of the .pdf to write (not inside .git) | |
| markdown_path | Yes | Absolute path of the .md file |