browser_screenshot
Capture a screenshot of the current page or a specific element to analyze UI layout and visual state. Returns base64 image data for inspection and verification.
Instructions
Take a screenshot of the current page for UI analysis. Returns the screenshot as base64-encoded image data that can be analyzed.
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": {
"pageId": "<pageId>"
},
"name": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page ID to screenshot | |
| fullPage | No | Capture full scrollable page (default: false) | |
| selector | No | CSS selector to screenshot a specific element |