playwright_screenshot
Capture browser screenshots of entire pages or specific elements using Playwright automation, with options for dimensions, formats, and storage locations.
Instructions
Take a screenshot of the current page or a specific element
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the screenshot | |
| selector | No | CSS selector for element to screenshot | |
| width | No | Width in pixels (default: 800) | |
| height | No | Height in pixels (default: 600) | |
| storeBase64 | No | Store screenshot in base64 format (default: true) | |
| savePng | No | Save screenshot as PNG file (default: false) | |
| downloadsDir | No | Custom downloads directory path (default: user's Downloads folder) |