Read the page's element tree
browser_snapshotCaptures a page's accessibility tree and element refs for clicking or typing, letting you inspect and interact with the current browser session.
Instructions
The page's accessibility tree, one element per line tagged [ref=eN] for browser_click and browser_type. Refs last until the next snapshot or navigation. Capped at 40000 characters unless max_chars says otherwise.
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": {
"session_id": "<session_id>"
},
"name": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Seconds; unset, 30. | |
| max_chars | No | Cap on the tree, in characters. | |
| session_id | Yes | The session_id `browser_open` returned. |