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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"save_path": "<save_path>"
},
"name": "save_pdf"
}
}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 | |||