screenshot
Capture web page screenshots across multiple viewport breakpoints using Puppeteer. Automate page interactions, optimize images, and set custom wait conditions for precise rendering.
Instructions
Capture screenshots of web pages at multiple viewport breakpoints using Puppeteer
Input Schema
Name | Required | Description | Default |
---|---|---|---|
actions | No | Array of page interactions to perform before taking screenshots | |
breakpoints | No | Viewport breakpoints (optional, defaults to mobile: 375px, tablet: 768px, desktop: 1280px) | |
cookies | No | Cookies to inject into the browser session before navigation | |
headless | No | Run browser in headless mode | |
imageFormat | No | Image format (JPEG recommended for smaller file sizes) | jpeg |
maxWidth | No | Maximum width for image optimization (images wider than this will be clipped) | |
quality | No | JPEG quality (1-100, only applies when imageFormat is 'jpeg') | |
sessionId | No | Session identifier for persistent browser state (maintains cookies, login data, localStorage, etc.) | |
timeout | No | Navigation timeout in milliseconds | |
url | Yes | URL to capture screenshots from | |
userDataDir | No | Custom user data directory path for browser session storage | |
waitFor | No | Wait condition before capturing screenshot | networkidle0 |