Aria Snapshot
aria_snapshotCapture an ARIA snapshot of a tab's interactive elements with stable indices for clicking or typing, and refresh it after DOM changes to avoid stale element references.
Instructions
ARIA tree of interactive elements w/ idx for click/type. ~50ms. Call BEFORE
first interaction + after any DOM change (idx invalidates). Repeats group as
[12-77] cycle×13: link('A'),link('B') (lossless — click any idx in range).
Ex: aria_snapshot('t0') → {"tree":"[0] button "Sign in"\n[1] textbox "email"\n...","count":12}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>"
},
"name": "aria_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| max_items | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||