Render HTML or a page to PDF
html_to_pdfRender HTML, Markdown or a URL to a PDF in headless Chromium and return a download link. Uses 1 credit from the user's Shotlane account.
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": "html_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Alternatively, a public page URL to print. | |
| html | No | Full HTML document to render. | |
| paper | No | A4 | |
| margin | No | Page margin on all sides, e.g. 15mm or 0.5in. Default 0. | |
| markdown | No | Alternatively, Markdown; rendered with a clean document style. | |
| landscape | No | ||
| page_numbers | No | Add a '1 / N' page number footer. |