print_pdf
Render a Chrome page to PDF through the browser's print pipeline, save it to the task results folder, and return the file path and size.
Instructions
Render the page to PDF through Chrome's own print pipeline and save it to the task's results/ dir. Returns the path and size, not the bytes - a PDF is not something to spend context on.
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_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | 0.1 - 2.0 | |
| tabId | No | Tab id (default: agent's tab) | |
| landscape | No | ||
| pageRanges | No | e.g. '1-3, 5' | |
| paperWidth | No | Inches | |
| paperHeight | No | Inches | |
| printBackground | No | Include background graphics (default true) | |
| preferCSSPageSize | No |