Screenshot
browser_screenshotCapture the active browser tab or a specific element as an image, with options for selector, format, quality, and full-page output. Use it to inspect or share rendered page content.
Instructions
Take a screenshot of the active tab (or of one element) and return it as an image.
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": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12" | |
| format | No | Default jpeg | |
| quality | No | JPEG quality, default 70 | |
| fullPage | No | ||
| selector | No | Playwright selector (CSS, text=..., role=..., xpath=...) used when no ref is given |