browser_when_changed
Find when a URL, storage key, or DOM element last changed before a specified moment, and what it changed to, using recorded session data.
Instructions
BACKWARD DATA-BREAKPOINT. Ask when something LAST changed before a moment, and to what — the time-travel debugger move. Targets: a URL ({ type: "url" }), a storage key ({ type: "storage", key: "token" }), or a DOM region by text ({ type: "dom", textContains: "modal-backdrop" }). Anchor the "before" moment by timestamp, an anchor token from browser_timetravel, or "last_error" (just before the last failed action/error/failed request). Answered from the recorded timeline + storage keyframes (storage granularity = the keyframe interval).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | For type=storage: the storage key. | |
| type | Yes | What to trace. | |
| store | No | For type=storage: which store (default local). | |
| before | No | Moment to look before: a timestamp (ms epoch), an anchor token, or "last_error" (default: end of session). | |
| textContains | No | For type=dom: match mutations mentioning this text. |