save_page
Save the current browser page as a PNG screenshot, HTML source, or PDF file to a local path for persistent artifacts. Requires a running browser session and does not modify the page.
Instructions
Save the current browser page to a local filesystem file.
Use this tool when the browser workflow needs a persistent file artifact from the current page: a PNG screenshot, the current page source as HTML, or a PDF representation of the current page.
A browser session must already be running. This tool operates on the currently active browser tab and does not navigate, click, type, or otherwise modify the webpage.
Args: format: - "screenshot": Save a PNG screenshot of the current page. - "html": Save the current page source as an HTML file. - "pdf": Save the current page as a PDF.
filename:
Optional output filename. If omitted, defaults to:
- "screenshot.png" for format="screenshot"
- "page_source.html" for format="html"
- "page.pdf" for format="pdf"
folder:
Optional destination folder passed to SeleniumBase.
If omitted, SeleniumBase uses its default output location.Side effects and filesystem behavior: This tool writes a file to the filesystem and may overwrite an existing file with the same output name. Only use trusted and authorized filesystem paths. The MCP process must have permission to write to the requested destination.
The tool does not upload, publish, or transmit the saved file by
itself. The resulting file remains in the filesystem available to
the MCP server process.Error behavior: If the browser session is not running, the tool returns a lifecycle error. Filesystem, browser, or SeleniumBase failures are converted into descriptive MCP error results by the server's error handler.
When not to use: - Do not use this tool merely to read page text or HTML; use get_content instead. - Do not use this tool when you only need page metadata such as the URL or title; use get_page_info instead. - Do not use this tool to manipulate the page; use the appropriate interaction tool such as click_element, type_text, or select_option.
Returns: A confirmation message containing the requested output format and filename after the save operation succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | ||
| format | No | screenshot | |
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |