Snapshot page
snapshotCapture a compact accessibility tree with stable refs for interactive elements so agents can inspect browser pages and target controls before clicking or typing.
Instructions
Return a compact accessibility-style tree with stable refs (e.g. f0_e12) for interactive elements. Do this before clicking or typing. Refs belong to a frame; use allFrames=true to include iframes.
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": "snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | interactive | |
| tabId | No | ||
| frameId | No | Frame id. Defaults to the top frame (0) or the frame encoded in a ref. | |
| timeout | No | ||
| maxDepth | No | ||
| maxNodes | No | ||
| selector | No | Restrict the snapshot to a subtree. | |
| allFrames | No | Snapshot the top frame and all iframes. | |
| includeBboxes | No | Include element bounding boxes in the tree. | |
| includeHidden | No |