print_to_pdf
Turn any webpage into a PDF file with adjustable print options for scale, orientation, paper size, and backgrounds.
Instructions
Print the current page to PDF
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "print_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale (0.1-2) | |
| tabId | No | Tab ID (optional) | |
| landscape | No | Landscape orientation | |
| paperWidth | No | Paper width in inches | |
| paperHeight | No | Paper height in inches | |
| printBackground | No | Print background graphics | |
| displayHeaderFooter | No | Display header/footer |