screenshot-page
Capture and encode screenshots of web pages as base64 images using specified dimensions, formats, and load conditions. Includes options for authentication via saved cookies and browser visibility.
Instructions
Captures a screenshot of a given URL and returns it as base64 encoded image. Can use saved cookies from login-and-wait.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
delay | No | Additional delay in milliseconds to wait after page load | |
format | No | Image format for the screenshot | png |
fullPage | No | Whether to capture the full page or just the viewport | |
height | No | Viewport height in pixels | |
quality | No | Quality of the image (0-100), only applicable for jpeg and webp | |
reuseAuthPage | No | Whether to use the existing authenticated page instead of creating a new one | |
url | Yes | The URL of the webpage to screenshot | |
useDefaultBrowser | No | Whether to use the system's default browser instead of Puppeteer's bundled Chromium | |
useSavedAuth | No | Whether to use saved cookies from previous login | |
visibleBrowser | No | Whether to show the browser window (non-headless mode) | |
waitFor | No | When to consider the page loaded | networkidle2 |
width | No | Viewport width in pixels |