chrome_snapshot
Capture a structured snapshot of a page in your existing Chrome profile, revealing stable uids, visible actions, form fields, and page hints. Zoom into specific elements with mode, query, or nearUid.
Instructions
Inspect a page in the existing Chrome profile. Returns an agent-friendly observation with stable uids, visible actions, form fields, and page hints. Use mode/query/nearUid to zoom instead of dumping the whole page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| query | No | Find/rank elements, regions, and text matching this phrase. | |
| nearUid | No | Sort elements by proximity to this snapshot uid. | |
| targetId | No | Chrome tab id to target. | |
| background | No | If true, avoid explicit Chrome focus/tab activation (default). Pass false to allow foreground work. | |
| roleFilter | No | Only return elements matching this ARIA role or tag name (case-insensitive), e.g. 'button', 'link', 'textbox'. | |
| maxElements | No | Max elements in the snapshot. | |
| urlIncludes | No | Match the target tab by URL substring. | |
| maxTextChars | No | Max body text chars included in the snapshot. | |
| titleIncludes | No | Match the target tab by title substring. | |
| containingText | No | Only return elements whose label/text contains this string (case-insensitive). |