convert_md_to_pdf
Convert a local Markdown file to PDF using the PDF4me API. Provide the file path and output directory to save the resulting PDF.
Instructions
Convert a local Markdown file (.md) to PDF using the PDF4me ConvertMdToPdf API. Provide the file path to the Markdown file and output_dir where the PDF will be saved. Long HTTP timeouts on requests. complete. Optional output file name (defaults to <input_basename>.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": {
"file_path": "<file_path>",
"output_dir": "<output_dir>"
},
"name": "convert_md_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the Markdown file (.md). | |
| output_dir | Yes | Directory to save the PDF (required). | |
| output_file_name | No |