Snapshot
browser_snapshotCaptures the current screen as structured text, listing viewport elements with roles, names, text, refs, and states plus counts of content above and below. Use index mode to list only controls.
Instructions
Returns what is on screen now, as text: one line per element in and near the viewport (role, name, text, [ref], states) and counts of what lies above and below. With mode "index", only the controls. Actions already report their changes, so this is rarely needed right after one.
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 |
|---|---|---|---|
| mode | No | "a11y" (default) shows the page as it reads; "index" lists only the controls, one per line. | a11y |
| profile | No | Which browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default. | default |