snapshot
Lists visible interactive elements with refs for click, hover, type, or query, piercing shadow DOM. Take a new one after screen changes since refs go stale.
Instructions
Lists the visible interactive elements (buttons, tabs, inputs, cards, nav items), piercing shadow DOM, each with a ref usable by click/hover/type/query. Repeated items (grids, lists) collapse after a few. Take a new snapshot after the screen changes: refs go stale.
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 | Max items (default 400). | |
| within | No | Only inside this container selector (e.g. a modal from `state`). | |
| collapse | No | Keep this many of each repeated item (default 3, 0 = all). | |
| selectors | No | Include a stable CSS selector per element. |