take_screenshot
Capture browser screenshots as base64 PNG images to visually analyze web pages before interacting with elements. Supports full-page captures, viewport shots, or specific element targeting for web automation tasks.
Instructions
Capture a screenshot of the current browser page as a base64-encoded PNG image. Essential for visual feedback to understand what's displayed before deciding which buttons to click or forms to fill. Supports capturing the visible viewport, entire scrollable page, or specific elements. Returns the image as base64 string and data URL for easy display.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fullPage | No | Capture the entire scrollable page content (true) or just visible viewport (false). Use true for long pages (default: false) | |
selector | No | Optional CSS selector to capture only a specific element (e.g., '.chat-container', '#main-content') | |
sessionId | Yes | Session ID obtained from initialize_session |