browser_snapshot
Captures a compact, reference-tagged text snapshot of a browser tab's interactive elements and headings so agents can inspect a page and target elements for click or fill actions.
Instructions
The page as compact text: one line per interactive element or heading, [r12] button "Save".
Act on a ref with browser_click_ref / browser_fill_ref. diff=true: only lines that changed; within: a CSS
selector to look inside; viewport=true: only what is on screen. tab: the handle browser_new_tab returned ("t3"). Pass it on every call: several agents can share this server, and the tab is how each one keeps to its own page.
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": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | ||
| diff | No | ||
| within | No | ||
| viewport | No |