md_to_pdf
Convert Markdown files into styled PDF documents using CSS presets, custom CSS, page size, and orientation settings for offline publishing and sharing.
Instructions
Convert Markdown to styled 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": {
"input": "<input>",
"output": "<output>"
},
"name": "md_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to input file | |
| output | Yes | Path to output PDF file | |
| preset | No | CSS preset (github, elegant, minimal, branded, compact) | |
| page_size | No | Page size format (e.g. A4, Letter) | |
| custom_css | No | Custom CSS rules to apply | |
| orientation | No | Page orientation (portrait or landscape) |