capture_screenshot
Captures a browser tab’s viewport, full scrollable page, or selected element by CSS selector, so you can visually inspect or document web content.
Instructions
Screenshot of the tab's viewport, of the whole page with full_page, or of one element with selector (at most 16384 CSS pixels per side; a larger capture gets a note). To find elements to act on, prefer 'snapshot'.
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": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'png' (default), 'jpeg' (or 'jpg') or 'webp'. | |
| tab_id | No | Default: the active tab. | |
| quality | No | 0 to 100, for jpeg and webp. Default: 100. | |
| selector | No | Only this element's box: CSS selector, 'host >>> inner' (into an open shadow root or same-origin iframe) or snapshot ref (e12). | |
| full_page | No | Capture the whole scrollable page. Default: false. | |
| instance_id | No | Default: 'default'. |