Print page to PDF
print_to_pdfRender a specified Chrome tab to a PDF file and return the saved path, useful for saving receipts, reports, or invoices.
Instructions
Render the page to a PDF (CDP Page.printToPDF) and save it under ~/.claude-chrome-mcp/pdfs/. Good for receipts/reports/invoices. Returns the saved path.
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": {
"tabId": "<tabId>"
},
"name": "print_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale 0.1–2 (default 1) | |
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| landscape | No | Landscape orientation (default false) | |
| printBackground | No | Include background graphics (default true) |