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.
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": "pilot_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Output file path |