screenshot
Capture a PNG image of a page or a specific element using a CSS selector or element reference, with options for full-page and iframe support.
Instructions
Capture a PNG screenshot (page or element).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from a prior read (exactly one of selector|ref) | |
| tabId | No | Target tab id (defaults to the active tab) | |
| frameId | No | Act inside this frame (ids come from frames_list) | |
| fullPage | No | ||
| selector | No | CSS selector (exactly one of selector|ref) | |
| allFrames | No | Search every frame of the tab and act on the first that matches - use when a selector should match but does not (the element is in an iframe) |