save_pdf
Save the active browser tab as a validated PDF to a relative path under ~/Downloads/browsertap. Supports scale, landscape, print backgrounds, page ranges, and CSS page size.
Instructions
Print a real-browser tab to a validated PDF file through bounded CDP. save_path is RELATIVE and resolves under ~/Downloads/browsertap; an absolute path or a '..' escape is refused. 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 | |||