take_screenshot
Capture a screenshot of a browser page, either saving to file or returning an AI-consumable image. Supports full page capture and JPEG/PNG formats with adjustable quality.
Instructions
[LEGACY] Take a screenshot of the current page. Use interact_with_page instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Browser session ID to take screenshot from. Session must already exist | |
| filepath | No | File path where the screenshot will be saved. Should include file extension (.png or .jpeg). Required when return_for_ai is false | |
| return_for_ai | No | Whether to return screenshot in AI-consumable format {type: 'image', data: 'base64', mimeType: 'image/png'} instead of saving to file | |
| full_page | No | Whether to capture the full page (including parts below the fold) or just the visible viewport | |
| quality | No | Image quality for JPEG format (0-100). Higher values mean better quality but larger file size. Not applicable for PNG format | |
| type | No | Image format for the screenshot. PNG provides lossless compression, JPEG provides smaller file sizes | png |