render_pdf
Render a web page to PDF, PNG, JPEG, WebP or Markdown. Returns the download URL of the finished file; fetch it with your API key as the Bearer token. One tool call: the answer carries the finished file's download URL; no job polling.
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": "render_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to render | |
| format | No | Output format, defaults to pdf | |
| blockAds | No | Filter ad and tracker requests with community filter lists and hide leftover ad slots. Defaults to false; cosmetic hiding applies to pdf, png, jpeg and webp | |
| fullPage | No | Capture the full scrollable page. Defaults to true; set false for a viewport-only capture. Applies to png, jpeg and webp | |
| viewport | No | Layout viewport in pixels before capture, 200 to 7680 each. Applies to png, jpeg and webp | |
| landscape | No | Landscape orientation, defaults to false | |
| colorScheme | No | Render the page as if the visitor prefers light or dark mode; site keeps the page's own choice. Defaults to light |