Make a PDF
render_pdfRender markdown as an A4 PDF. The PDF comes back inside this result as an embedded application/pdf resource (base64); nothing is stored and there is no download link. If you can run shell commands, save the file directly instead: curl -sS -X POST https://md2pdf.free/api/pdf -H "Content-Type: text/markdown" --data-binary @document.md -o document.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": {
"markdown": "<markdown>"
},
"name": "render_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | classic (default), modern or formal. Overrides any <!-- md2sign:style=... --> line. | |
| markdown | Yes | The full markdown document. Start with "# Title": it names the file. | |
| letterhead | No | Name in the formal style's letterhead band, e.g. a company name. Defaults to the document title. |