Save page as PDF
save_pdfExport the current page to a PDF file using Chrome's print-to-PDF, capturing the entire document with print styles applied for archiving.
Instructions
Export the current page to a PDF using Chrome's print-to-PDF.
Renders the entire document rather than just the viewport, and applies the page's print stylesheet — so the result can differ from the screen layout.
A good way to archive a rendered page as one file. For a pixel-accurate copy of what is on screen, use take_screenshot with full_page instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| file_path | Yes | Local path to write the .pdf file to. | |
| landscape | No | Use landscape orientation instead of portrait. | |
| print_background | No | Include background colours and images. Default true, which resembles the page as seen on screen; false gives the leaner print view. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |