print_page
Converts the current page into a PDF using print CSS, saves it to a chosen path or default output folder, and returns the saved file path.
Instructions
Print the current page to a PDF file using print CSS. Returns the saved file path.
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_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saveTo | No | Where to save the PDF. Pass a file path, an existing directory (generated file inside), or true or omit it (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory. | |
| landscape | No | Use landscape orientation (default: false) | |
| background | No | Print background colors and images (default: false) |