Open the print UI, print preview or page setup
browser_printOpens the Firefox print surface for a tab, letting you start printing, toggle print preview, or open page setup.
Instructions
Open the printing surface for a tab. MEASURED: PrintUtils is NOT a module — it is the global object defined by chrome/toolkit/content/global/printUtils.js and reachable as PrintUtils on the browser window. It offers startPrintWindow, togglePrintPreview, showPageSetup, getPrintSettings and handleSystemPrintDialog (there is no print()/showPrintDialog()). Use browser_pdf when you want the PDF without any UI.
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": {
"action": "<action>"
},
"name": "browser_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | print = open print UI; preview = toggle preview; page-setup = page setup dialog |