Snapshot page
browz_snapshotRead a tab as an accessibility tree: roles, names, values and states, one element per line, plus the visible text. Interactive elements carry a ref like [e12] (the ref "e12" is accepted by browz_act); a run of sibling links shares one line, - links: "Home" [e5], "About" [e6], each link with its own ref. A ref stays valid while its element stays on the page; take a new snapshot after a navigation. The result reports its mode and estimated tokens; a page over maxTokens falls back to a smaller mode, then is cut.
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": {
"id": "<id>"
},
"name": "browz_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Profile id, as listed by browz_profile_list | |
| mode | No | compact (default): controls, headings, alerts and visible text. interactive: controls and headings only. full: every accessibility node | |
| deviceId | No | Which computer to use (as listed by browz_devices_list). Needed only when more than one is online | |
| targetId | No | Tab to use: a targetId from browz_tabs_list. Default: the first tab | |
| maxTokens | No | Token budget for the snapshot (about 4 characters a token). Default 10000 | |
| workspaceId | No | Workspace id. Needed only for API tokens of people in more than one workspace |