Browser PDF Export
browser_pdfRender the current page to a PDF file on disk in headless mode; returns the saved path and file size. Use when PDFs are too large for inline context.
Instructions
Render the current page to a PDF file on disk (not returned inline — PDFs are too large for tool-call context). Returns the saved path and file size. Headless mode only.
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": {
"path": "<path>"
},
"name": "browser_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| path | Yes | Absolute file path to save the PDF to. | |
| format | No | Paper size (default "A4"). | |
| landscape | No | Landscape orientation (default false). | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |