Browser Snapshot
browser_snapshotCapture a structured snapshot of a page's DOM to inspect its current state. Limit tree depth, child nodes, or scope to a specific element for efficient parallel browser automation.
Instructions
Return a structured page snapshot.
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": {
"sessionId": "<sessionId>"
},
"name": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Max tree depth (default 4). | |
| selector | No | Scope to an element; omit for document body. | |
| sessionId | Yes | ||
| maxChildren | No | Max children per node (default 20). |