Screenshot
browser_screenshotCapture viewport, full-page, or element screenshots from a browser, returning images or saving them to the artifacts directory for visual verification and debugging.
Instructions
Screenshot of the viewport, full page, or one element. Returned as an image and/or saved to the artifacts directory (output.screenshots).
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 |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| name | No | ||
| path | No | Save to this path (must be inside allowed roots) | |
| role | No | ||
| text | No | ||
| exact | No | ||
| label | No | ||
| format | No | ||
| pageId | No | ||
| testId | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| session | No | ||
| fullPage | No | ||
| selector | No | CSS (last resort) | |
| placeholder | No |