snapshot
Capture a compact accessibility view of a Chrome tab to inspect controls, headings, landmarks, dialogs, and alerts, with optional full detail and line paging.
Instructions
Compact accessibility snapshot of a tab: one line per element "- role "name" eN attrs", indented by nesting; iframes are inlined. interactive mode (default) lists controls, headings, landmarks, dialogs, alerts; full adds text, lists, tables, images. Page with offset (line offset) when the footer says so.
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": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id such as "t3"; default is the active tab | |
| mode | No | ||
| scope | No | Target (ref or selector) to snapshot only that subtree | |
| offset | No | Line offset for paging | |
| max_chars | No | ||
| viewport_only | No |