browser_snapshot
Reads the current page as a numbered accessibility tree, assigning [ref] numbers to interactive elements. Use the refs to target browser actions and re-run after each action to stay updated.
Instructions
Read the current page as a numbered accessibility tree.
Interactive elements are prefixed with [ref] numbers. Pass a ref to any browser_* tool that accepts a target. Re-run after every action.
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 |
|---|---|---|---|
| max_nodes | No | Max lines to return (10-400). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |