veil_pdf
Render the current page to a PDF file and save it to disk. Configure landscape, background printing, scale, and page ranges.
Instructions
Render the current page to a PDF and save it to disk — Chrome prints PDF in HEADLESS mode only (VEIL_HEADLESS=1). Pass path for the output file, or omit to write a temp file; returns the saved path. Options: landscape, printBackground (default true), scale, pageRanges.
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": "veil_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | output .pdf path (default: a temp file) | |
| scale | No | ||
| landscape | No | ||
| pageRanges | No | e.g. "1-3, 5" | |
| printBackground | No |