browser_snapshot
Captures an accessibility snapshot of the current page and returns a text tree with [ref] labels for interactive elements. Use these refs to target click, type, and other browser actions.
Instructions
Get an accessibility snapshot of the current page.
Returns a text tree of page elements. Interactive elements are labeled with [ref] numbers that can be used in other browser tools (click, type, etc.). Always call this before interacting with elements.
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 |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |