convert_markdown_to_pdf
Convert Markdown content to PDF documents with customizable formatting options, output sizes, and PDF engine selection.
Instructions
Convert Markdown content to PDF with customizable formatting options.
Args: working_dir: Absolute path to the working directory for file operations markdown_content: The markdown content to convert to PDF output_filename: Name of the output PDF file relative to working_dir (default: output.pdf) size: Output size - 's' (small/compact), 'm' (medium), 'l' (large/detailed) (default: l) pdf_engine: PDF engine to use - weasyprint or pdflatex (default: weasyprint)
Returns: A message indicating success or failure of the conversion
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": {
"working_dir": "<working_dir>",
"markdown_content": "<markdown_content>"
},
"name": "convert_markdown_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| working_dir | Yes | ||
| markdown_content | Yes | ||
| output_filename | No | output.pdf | |
| size | No | l | |
| pdf_engine | No | weasyprint |