Undo a specific state change, by history event
undoRevert a bookmark to its previous state by reversing its latest history event. Batch-revert via filters, preview changes first, and never lose history.
Instructions
MUTATING TOOL. Revert an item to whatever it was immediately before one of ITS OWN history events — this works for kept and watching, not just lapsed (that's what restore is for). Only an item's current LATEST event can be undone; anything else comes back as not-latest-event, showing you the actual latest one to target instead. Select events either with explicit eventIds (from any tool's history[].eventId), or with filter (by source id / time range / attribution) to batch-undo every matching item's latest event at once. Pass preview: true to see exactly what would change first. Undoing never erases history — it appends a new entry, so the full trail including undos stays intact. This call may first persist lazy expiry/drip housekeeping (see README) even if you only meant to read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| filter | No | Alternative to eventIds: undo every item's LATEST event matching these criteria | |
| preview | No | See what would be undone without changing anything | |
| eventIds | No | Specific history event ids to undo | |
| actorClaim | No | Attribution claim only — this is NOT proof of user consent. This server has no way to verify who is really behind a call; omit this field unless you have a specific reason to claim "user" or "ai" (omitted calls are recorded as "mcp-client" in history). "ai" is rejected unless the user has set BOOKMARKS_LIFECYCLE_AUTO_DECIDE=true — and even then, real protection against unwanted changes comes from every mutation being undoable via `undo`, not from this field. |