page_state
Save, restore, and diff named page state checkpoints including cookies, storage, and DOM. Compare current DOM against snapshots to detect changes for testing.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"action": "<action>",
"name": "<name>"
},
"name": "page_state"
}
}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 |