puppeteer_screenshot
Captures a screenshot of a web page as base64 JPEG. Optionally navigates to a URL, uses an existing session, or waits for a specific element before capturing.
Instructions
Take a screenshot of the current page state and return as base64 JPEG. If sessionId provided, screenshots the current state. Otherwise navigates to URL first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to screenshot (only used if sessionId not provided) | |
| sessionId | No | Session ID to screenshot current state | |
| width | No | Viewport width in pixels | |
| height | No | Viewport height in pixels | |
| delay | No | Additional delay in milliseconds after page load | |
| waitForSelector | No | CSS selector to wait for before taking screenshot |