Convert a web page or HTML to PDF
convert_to_pdfPrint-quality PDF from a URL or raw HTML via self-hosted Gotenberg (headless Chromium). Returns a hosted PDF download URL. Example — GET https://ainetcafe.com/t/convert_to_pdf?url=https://example.com
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 |
|---|---|---|---|
| url | No | Page URL to convert (either url or html is required). | |
| html | No | Raw HTML to convert (alternative to url). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||