Convert to PDF
convert_to_pdfRender Markdown or HTML to a print-ready PDF (Letter or A4). JavaScript off, no network: use inline data: images. ($0.004) Returns the file as an embedded resource (base64).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML fragment or full document (send this or markdown) | |
| title | No | Document title; also used for the file name | |
| markdown | No | GitHub-flavored Markdown (send this or html) | |
| page_size | No |