Snapshot Diff
diffCompare browser pages against previous snapshots to detect changes. Returns additions, removals, and modifications to reduce token usage versus full re-capture. Supports CSS selector scoping.
Instructions
Compare the current page state against the last snapshot for this session. Returns only what changed (additions, removals, changes) — massive token savings vs a full re-snapshot. Use after 'act' instead of 'snapshot' when you just need to see what changed. On first call (no previous snapshot), returns the full snapshot with a note. Use 'selector' to scope the diff to a page region.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| selector | No | CSS selector to scope snapshot to a page region. |