Snapshot page
snapshotCapture a compact accessibility-style tree with stable refs for interactive elements before clicking or typing; include iframes when needed.
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.
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 |