Undo changes
undo-changeRevert Foundry VTT changes from the change log: restore updated fields, remove created docs, recreate deleted ones. Dry-run preview, then undo one change or an entire tool call.
Instructions
Undo changes from the change log: one change (changeId), the changes of one tool call (callId, optionally only the last count of them), or without either the latest tool call that is not undone yet. Updates get their recorded fields back, created documents are removed (only if unchanged since), deleted documents are recreated with their old id. Refused as a whole, with the cause, when a change cannot be undone (chat messages, notifications, world time, pause, files, settings), when the permission level for the original change is missing, or when the documents changed since (force: true restores fields anyway, never removes). Every undo is itself logged; undo that entry to redo. Use dryRun first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | With callId or alone: only the last this many changes, 1 to 50 | |
| force | No | Restore changed fields even when the document changed since the entry; default false | |
| callId | No | Id of a tool call from list-changes; undoes its changes newest first | |
| dryRun | No | Only check and show what would be undone; nothing is written | |
| changeId | No | Id of one change from list-changes |