Markdown to PDF
cc_md_to_pdfConverts Markdown files to PDF using a headless Edge or Chrome browser, with automatic fallback to HTML when no browser is found.
Instructions
Converts Markdown to PDF using a headless browser (Edge/Chrome).
Args:
input_path (string): Path to the Markdown file
output_path (string): Path to the PDF output
title (string, optional): Document title
Uses the same Markdown parser as cc_md_to_html. Requires Edge or Chrome. Falls back to HTML if no browser is found.
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_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "cc_md_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title | |
| input_path | Yes | Markdown file | |
| output_path | Yes | PDF output |