pilot_snapshot_diff
Compare the current webpage state against a previous snapshot. Shows a unified diff of added and removed content to verify the effect of actions or detect dynamic changes.
Instructions
Compare the current page state against the previously captured snapshot, showing a unified diff of what changed. Use when the user wants to verify the effect of an action (click, fill, navigation), check if dynamic content loaded, or see what changed on the page without re-reading the entire snapshot. The first call stores a baseline; subsequent calls diff against it.
Parameters:
selector: CSS selector to scope both snapshots to a specific subtree
interactive_only: Set to true to only diff interactive elements (buttons, links, inputs)
Returns: Unified diff text showing added (+) and removed (-) lines between snapshots.
Errors:
"No baseline snapshot": This is the first call — a baseline will be stored for future diffs.
Timeout: The page is unresponsive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector to scope the snapshot | |
| interactive_only | No | Only show interactive elements | |
| lean | No | Strip structural noise. Default: true. |