snapshot
Capture an accessibility tree of interactive elements with stable refs instead of guessing CSS selectors. Diff mode returns only changed elements from the last capture to cut cost in click/read loops.
Instructions
Accessibility snapshot: interactive elements with refs to target by ref (more reliable than guessing CSS selectors). Pass diff:true to get only what changed since the last snapshot of this tab - far cheaper in a click/read loop. Password fields appear as secret:true with no value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| diff | No | Return added/removed/changed elements since the previous snapshot of this tab instead of the whole tree | |
| tabId | No | Tab id (default: active tab) | |
| frameId | No | Frame id from frames_list | |
| allFrames | No | Act on the first match in ANY frame (the element may be in an iframe) | |
| failOnAuthWall | No | Error with [AUTH_REQUIRED] if this lands on a sign-in wall (expired session) | |
| interactiveOnly | No |