generate_pdf_from_html
Generate a PDF from HTML content. Accepts HTML input and returns base64-encoded PDF bytes, enabling automated document creation from HTML templates.
Instructions
Generate a PDF from HTML content.
Args: html: HTML content to convert to PDF.
Returns: Base64-encoded PDF bytes.
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": {
"html": "<html>"
},
"name": "generate_pdf_from_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |