webpage_to_pdf
Fetch a public URL and render the webpage to a PDF file in a headless browser, so you can archive or print any page. Writes the result to a required output_path.
Instructions
Fetch a public URL and render the page to PDF in a headless browser. Use this to archive or print a web page. This tool takes a URL rather than a file, so output_path is required. The input is uploaded to the Papyrio API, processed in memory and not stored. The result is written to output_path, replacing any file already there, and the call returns that path and the size in bytes. Inputs are limited to 50 MB, and each call counts as one operation against the daily quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Publicly reachable page URL, including https://. | |
| output_path | Yes | Absolute path to write the .pdf result to. Required for this tool. |