snapshot
Capture interactive accessibility elements with stable refs to target reliably instead of guessing CSS selectors; use diff mode to return only changes since the last capture.
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.
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 |
|---|---|---|---|
| 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: agent's 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 |