save_pdf
Save the current browser tab to a validated PDF file using the live page content, with controls for scale, orientation, background graphics, and page ranges. Invalid PDF output or timeout prevents file creation.
Instructions
Print a real-browser tab to a validated PDF file through bounded CDP. The file is written atomically only after valid non-empty PDF bytes are returned; a CDP timeout invalidates and detaches the debugger lease.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| timeout | No | ||
| landscape | No | ||
| save_path | Yes | ||
| session_id | No | ||
| page_ranges | No | ||
| print_background | No | ||
| prefer_css_page_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||