page_state
Create named snapshots of URL, cookies, storage, and DOM. Restore to any checkpoint or diff current DOM against a snapshot to test multiple paths from a common state.
Instructions
Named page-state checkpoints. action=snapshot saves URL + cookies + storage + DOM signature under a name; action=restore navigates back to it and restores cookies/storage; action=diff compares the current DOM against the snapshot (added/removed/changed elements + tag count changes). Enables testing multiple paths from the same starting point.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Checkpoint name | |
| action | Yes | snapshot = save, restore = return to it, diff = compare current DOM vs it | |
| session_id | Yes | Session ID |