存为 PDF
browser_pdfRender the active page to an A4 PDF with backgrounds, save it to an allowed export path, and return the file path.
Instructions
Render the active page to a PDF (A4, print background on) and save it. Returns the 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": "browser_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Output file path inside the browser export dirs (~/.aabrowser/downloads, har, screenshots or AA_BROWSER_EXPORT_DIR; default ~/.aabrowser/downloads/aa-page-<ts>.pdf). Symlinks and paths outside those dirs are rejected. | |
| tabId | No | Tab id (default: active tab) | |
| landscape | No | Landscape orientation (default false) |