screenshot
Capture a webpage or element screenshot from a Chrome tab, with options for format, quality, scale, and full-page capture.
Instructions
Capture a screenshot (page or element). Default is JPEG (quality 70) at CSS-pixel size, which is several times smaller than PNG and reads fine. Pass format:"png" for lossless, quality 1-100 for JPEG, scale 2 for device pixels on a Retina display or 0.5 to shrink.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from a snapshot | |
| scale | No | ||
| tabId | No | Tab id (default: active tab) | |
| format | No | ||
| frameId | No | Frame id from frames_list | |
| quality | No | ||
| fullPage | No | ||
| selector | No | CSS selector (or pass ref) | |
| allFrames | No | Act on the first match in ANY frame (the element may be in an iframe) |