Capture visible screenshot
screenshotCapture the visible tab viewport as PNG or JPEG, optionally crop to a snapshot reference or viewport bounds for focused analysis.
Instructions
Capture the visible tab viewport. This tool is tab-target only; iframe frameViewport bounds are not valid crop coordinates. Optionally crop to a top-document snapshot ref or tabViewport bounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Snapshot ref to crop to (mutually exclusive with bounds). | |
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| bounds | No | Viewport CSS-pixel crop rect (mutually exclusive with ref). | |
| format | No | ||
| padding | No | Optional non-negative CSS pixels to expand the crop rect before viewport intersection. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |