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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}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. |