markdown_to_pdf
Convert Markdown content into a downloadable PDF with support for tables, code blocks, and custom page sizes, returning a URL to the generated file.
Instructions
Convert Markdown content to a downloadable PDF document. Supports GFM tables, code blocks, and custom page sizes. Returns a URL to the generated 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": {
"markdown": "<markdown>"
},
"name": "markdown_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title for PDF metadata | |
| margin | No | Page margin (default: "20mm") | |
| markdown | Yes | Markdown content to convert | |
| page_size | No | Page size: A4, Letter, Legal (default: A4) | |
| orientation | No | Orientation: portrait, landscape (default: portrait) |