html_pdf
Pixel-accurate PDF from a URL or your HTML: print CSS, page size, margins, header, footer with page numbers. Invoices, reports, contracts. Cost €0.006 per document, charged to the API key in Authorization: Bearer. Parameters — url: page url (or html); html: raw HTML string; format: A4 (default) | A3 | A5 | Letter | Legal; landscape: bool; margin: e.g. 15mm; header: header text; footer: footer text, page numbers appended; page_numbers: bool; print_css: bool, use @media print (default true); wait: ms after load.
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_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| html | No | ||
| wait | No | ||
| footer | No | ||
| format | No | ||
| header | No | ||
| margin | No | ||
| landscape | No | ||
| print_css | No | ||
| page_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |