generate_pdf
Convert HTML content to PDF documents in A4 or Letter format. Returns PDF files for download or sharing.
Instructions
Convert HTML content to PDF document. Returns the PDF file. Cost: $0.03 USDC via x402.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML content to convert to PDF | |
| format | No | Page format (default: 'A4') |