browser_take_screenshot
Capture a screenshot of the current page or a specific element, with options for full-page capture, to document or verify web content visually.
Instructions
Take a visual screenshot of the current page or a specific element.
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_take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional element ref from snapshot to screenshot only that element. | |
| type | No | Image format (default: 'png'). | png |
| element | No | Human-readable description of the element if ref is specified. | |
| filename | No | Optional file path to write the image to. | |
| fullPage | No | Capture the full scrollable page. | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). |