Reconstruct DOM at a time
get_dom_snapshotReconstruct a page's DOM at a given timestamp, returning HTML with mutations applied. Optionally limit to a CSS selector subtree.
Instructions
Reconstruct the page DOM as it existed at a timestamp (or a selector subtree within it) and return it as HTML. Applies structural/attribute/text mutations on top of the nearest full snapshot at or before ts. Returns JSON { baseSnapshotTs, mutationsApplied, html }; html clipped to 24000 chars. Fails if no full snapshot exists at or before ts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id from list_recent_sessions. | |
| ts | Yes | Epoch-ms timestamp to reconstruct the DOM at. Use timestamps from get_session_summary, error rows, or get_user_action_before_error. | |
| selector | No | CSS selector to return only that subtree. Omit to return the full document. |