pilot_pdf
Save the current webpage as a downloadable A4 PDF document. Use to export receipts, archive pages, or create offline copies.
Instructions
Save the current page as a PDF document in A4 format. Use when the user wants to export the page as a downloadable PDF, save a receipt, or archive a page for offline reading.
Parameters:
output_path: File path to save the PDF (default: /tmp/pilot-page.pdf). Must be within the allowed output directory
Returns: Confirmation with the file path where the PDF was saved.
Errors:
"Output path must be within ...": The path is outside the allowed directory. Set PILOT_OUTPUT_DIR or use /tmp.
"Page is not HTML": The current page is a non-HTML resource (e.g., a binary download) and cannot be exported as PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Output file path |