convert_markdown_file_to_pdf
Convert Markdown files to PDF documents with customizable formatting options including output size and PDF engine selection.
Instructions
Convert a Markdown file to PDF with customizable formatting options.
Args: working_dir: Absolute path to the working directory for file operations markdown_file_path: Path to the markdown file relative to working_dir output_filename: Name of the output PDF file relative to working_dir (if not provided, uses same name as input with .pdf extension) 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_file_path": "<markdown_file_path>"
},
"name": "convert_markdown_file_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| working_dir | Yes | ||
| markdown_file_path | Yes | ||
| output_filename | No | ||
| size | No | l | |
| pdf_engine | No | weasyprint |