Browser snapshot
browser_snapshotUse this when the user needs to inspect a web page structurally through CDP accessibility. Reuse the last snapshot_id as diff_from to return changed/removed semantic nodes rather than retransmitting the whole page after each step; refresh with a full snapshot when unavailable. Prefer it over desktop ui_snapshot for page content; add include_screenshot=true only when final pixel/layout verification is needed. A selector may be temporarily centered for capture, but the original page scroll position is restored before the tool returns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Choose a page whose title contains this text. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| endpoint | No | Loopback Chrome DevTools endpoint. Defaults to REMCP_CDP_URL or http://127.0.0.1:9222. | |
| selector | No | When include_screenshot=true, center this CSS-selected element before capture and report its viewport bounds. | |
| diff_from | No | Optional previous opaque snapshot_id for this exact target/page and node limit. Return changed/removed AX nodes only; if stale or mismatched, safely return a full snapshot. | |
| max_nodes | No | Maximum AX nodes; default 1500. | |
| target_id | No | Page target id returned by browser_tabs. | |
| timeout_ms | No | Timeout in milliseconds. | |
| url_contains | No | Choose a page whose URL contains this text. | |
| include_screenshot | No | Attach a real CDP-rendered viewport PNG screenshot; default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Browser snapshot structured result for browser_snapshot. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |