pdf_create_from_markdown
Convert Markdown content into a formatted PDF with tables, code blocks, and rich text. Specify output path and optional page size, title, and author metadata.
Instructions
Create a rich, high-fidelity PDF from Markdown (CommonMark + GFM). Supports headings, bold/italic, links, ordered/bullet lists, tables, fenced code blocks, blockquotes, and horizontal rules.
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": "<markdown>",
"outputPath": "<outputPath>"
},
"name": "pdf_create_from_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | Markdown content to render as PDF | |
| outputPath | Yes | Absolute path for the output PDF file | |
| pageSize | No | Page size. Defaults to A4. | |
| title | No | PDF document title metadata | |
| author | No | PDF document author metadata |