Export the page as PDF
browser_pdfRender the full web page to a base64-encoded PDF, including content below the viewport, to capture long pages that screenshots miss.
Instructions
Render the page to PDF and return it base64-encoded (verified: browsingContext.print returns %PDF-1.4). Unlike browser_screenshot this covers the WHOLE document, including parts below the viewport, so it is the way to capture a long page. Note the output is binary and can be large; write it to a file to view it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Tab context id (default: the active tab) | |
| landscape | No | Landscape orientation (default false) | |
| printBackground | No | Print background colours and images (default true) |