Browser Screenshot
browser_screenshotCaptures full-page or targeted element screenshots to verify visual rendering and layout issues that an accessibility tree cannot diagnose, or to fulfill an explicit screenshot request.
Instructions
⚠️ WRONG TOOL — use browser_snapshot instead. browser_snapshot returns a compact text-based accessibility tree that is sufficient for 95% of use cases.
ONLY use browser_screenshot when:
The user EXPLICITLY asks for a screenshot
You need to verify visual rendering/layout issues that cannot be diagnosed from the accessibility tree
This tool returns a large image that rapidly fills up conversation context and degrades performance.
Args: full_page = capture entire scrollable page, selector = optional CSS selector to capture specific element.
Session parameter:
session=None (default): Uses primary session ("s1")
session="s2": Targets specific session (for parallel agents)
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 |
|---|---|---|---|
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent identifier for binding check. Optional. | |
| selector | No | Optional CSS selector to capture specific element. | |
| full_page | No | Capture entire scrollable page. |