browser_snapshot
Retrieve a text snapshot of the current page's accessibility tree, returning interactive elements with reference IDs for subsequent click and type actions.
Instructions
Get a text snapshot of the current page's accessibility tree.
Returns interactive elements with ref IDs (like @e1, @e2) for use with browser_click and browser_type.
Args: session_id: Browser session ID full: If true, return full page content. If false (default), return only interactive elements (compact view).
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 |
|---|---|---|---|
| full | No | ||
| session_id | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |