Capture screenshot
browser_screenshotCapture PNG screenshots of a full page, the current viewport, or a specific element selected by CSS or XPath, so AI agents can visually verify page state and gather test evidence.
Instructions
Capture a PNG screenshot of the whole page, viewport, or a selected 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_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fullPage | No | Capture the full page. Ignored when selector is provided. | |
| selector | No | Optional CSS or XPath selector for an element screenshot. |