Capture PDF
capture_pdfSave a public web page as an A4 PDF and get a link to keep, share, or archive.
Instructions
Save a public web page as an A4 PDF and return a link to the file. Use it when the user wants a document to keep, share or archive. The PDF is not shown to you; to look at a page use capture_screenshot. Costs 1 screenshot of the monthly quota per call, failed captures included. Takes about 9-25 seconds. The link is public to anyone who has it and expires in 30 days. Limits: the page must be reachable from the public internet (no localhost or private networks).
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": "capture_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page, reachable from the public internet. localhost and private-network addresses cannot be captured; use render_html for local HTML. | |
| wait_ms | No | Extra wait in milliseconds after load, before the capture. API default 2000. Raise it for late animations or client-side rendering. | |
| custom_css | No | CSS injected before the PDF is made, for example print tweaks. | |
| wait_until | No | When the page counts as loaded. API default "networkidle2". Use "domcontentloaded" for heavy or slow sites (fastest, most reliable); "networkidle0" waits for all network activity to stop. | |
| hide_selectors | No | CSS selector(s) to hide (display:none) before capture, comma-separated, for example ".newsletter-popup, #ad-banner". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_url | Yes | The PDF file. Public to anyone who has the link. | |
| warnings | Yes | ||
| origin_url | Yes | ||
| captured_at | Yes | ||
| page_status | Yes | ||
| expires_in_days | Yes |