Take browser session screenshot
browser_screenshotCapture the current page or a specific element without navigating, returning an image and current URL for visual verification and debugging.
Instructions
Capture the current page or one element without navigating; return the image and current URL. Element capture waits and scrolls into view. Use browser_actions for other waits before capture.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Current snapshot element reference; omit both targets for page capture. | |
| quality | No | JPEG quality, 0-100; invalid for PNG. | |
| timeout | No | Capture limit in milliseconds; 0 disables it. | |
| selector | No | Playwright selector matching one element; omit when using ref. | |
| full_page | No | Capture the full scrollable page; incompatible with selector/ref. | |
| image_type | No | Image format. | png |
| session_id | Yes | ID from `browser_open`; call `browser_fetch` first. |