Screenshot
browser_screenshotCaptures a base64 PNG of the visible viewport, or scrolls and stitches a full page or selected scrollable element so you can inspect off-screen content.
Instructions
Capture a base64 PNG. By default only the visible viewport is captured (physical pixels, i.e. viewport size x devicePixelRatio); Firefox ignores the BiDi clip argument and this call does not scroll. Set fullPage to capture a whole scrollable area by scrolling and stitching segments inside the page (the original scroll position is restored). Pass selector to capture the full content of one scrollable element (an overflow:scroll container) — document scrolling alone would miss it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Tab context id (default: the active tab) | |
| fullPage | No | Capture the whole scrollable area instead of just the viewport (default false) | |
| lazyLoad | No | Before capturing, walk the area once so lazily loaded content appears and wait for its height to settle (default true) | |
| selector | No | CSS selector of a scrollable element to capture in full; implies fullPage |