browser_screenshot
Capture a webpage screenshot, optionally as full page or specific element. Supports JPEG/PNG, highlight elements, and save to disk.
Instructions
Capture a screenshot of the current page. Returns a compressed JPEG image by default. For non-blocking visual capture, prefer stream_screencast instead.
Options: • fullPage — Capture the entire scrollable page, not just the viewport. • backendNodeId — Capture just a specific element by its backend node ID. • savePath — Save the image to disk instead of returning inline. • highlightNodeIds — Temporarily draw a red border around these elements in the screenshot.
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 |
|---|---|---|---|
| format | No | Image format (default: jpeg) | |
| quality | No | JPEG quality 0-100 (default: 60) | |
| fullPage | No | Capture entire scrollable page (default: false) | |
| savePath | No | Absolute file path to save the image | |
| backendNodeId | No | Capture only this element | |
| highlightNodeIds | No | Optional list of backendNodeIds to highlight with a red border in the screenshot |