Observe page
tab_snapshotCapture a page snapshot to generate a snapshot_id for diffing or analysis. Scope to a CSS selector or viewport to access controls beyond truncation.
Instructions
Read the page and mint a new snapshot_id. Scope to one CSS root with selector or the visible viewport with viewport_only to reach controls beyond a truncated page. Changing scope resets the diff baseline. Respect truncation and frame metadata. When secrets are configured, available_secrets lists aliases available for the observed frame and top-level origin; it contains no secret values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| frame_id | No | ||
| selector | No | ||
| session_id | Yes | Session ID returned by tab_open. | |
| text_limit | No | ||
| max_elements | No | ||
| viewport_only | No |