browser_save_page
Save the current page (or one element) into the workspace's files and get its file_id. format: 'pdf' (printed page; optional paper letter|legal|tabloid|a3|a4|a5 — default the page's own CSS size —, landscape, print_background, scale), 'html' (current DOM, or the outerHTML of ref), 'mhtml' (one self-contained offline copy with styles and images), 'png' or 'jpeg' (screenshot of the viewport, full_page, or ref), 'text' (visible text of the page or ref). ref is an aria-ref token or CSS selector (frame = CSS selector of the it lives in). Returns {file_id, name, mime, size, url, title}.
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": {
"page_id": "<page_id>"
},
"name": "browser_save_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| frame | No | ||
| paper | No | ||
| scale | No | ||
| format | No | ||
| page_id | Yes | ||
| filename | No | ||
| full_page | No | ||
| landscape | No | ||
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| print_background | No |