Undo recent changes
undo_changesUndo (revert, roll back, cancel) a recent write_events / delete_events batch, a review_day action, or a manage_inbox or manage_categories call. Pass tokens: the undoToken values that those calls returned, before their expiresAt (a UTC instant, 30 minutes). A token reverses the whole change. If a row that the write touched changed again later (for example, the event moved or was deleted), that token fails with stale and nothing changes; conflictingRows gives up to 50 row ids with a reason (changed, deleted, newly_present), and conflictingRowsTruncated: true means more. Several tokens undo the newest write first, in any order. Each result counts reverted, restored, removed and voided. To reset a day's reflection, use review_day 'discard'.
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": {
"tokens": "<tokens>"
},
"name": "undo_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | The `undoToken` from an earlier write’s successfully recorded undo receipt. |