Export page as PDF
tab_pdfCreate a local PDF from the active browser page and get back the file path, SHA-256 hash, and source URL. Useful for preserving page content with print layout.
Instructions
Print the active page into a private local PDF artifact and return its path, SHA-256 and source URL. Files survive closing. Print layout can differ from the screen; inspect the artifact when layout matters.
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": {
"session_id": "<session_id>"
},
"name": "tab_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| landscape | No | ||
| session_id | Yes | Session ID returned by tab_open. |