Web Page to PDF (ConvertAPI)
document.convert.web_to_pdfRender any web page URL to a PDF with full JavaScript execution. Customize viewport width, load lazy content, and set a wait delay. Returns a download URL.
Instructions
Render any web page URL to PDF with full JavaScript execution — custom viewport width, lazy content loading, wait delay. Returns PDF download URL (ConvertAPI)
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": {
"url": "<url>"
},
"name": "document.convert.web_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Web page URL to render as PDF (e.g. "https://example.com") | |
| delay | No | Seconds to wait after page load before capturing (default 0) | |
| viewport_width | No | Browser viewport width in pixels (default 1280) | |
| load_lazy_content | No | Scroll page to trigger lazy-loaded images (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |