Undo changes
undo_changesReverse an agent's changes in a time window, such as after a bad import or runaway loop. Dry run by default; confirm to apply; only facts can be undone.
Instructions
Use to reverse everything one agent did in a time window, for example after a bad import or a runaway loop. By default this is a dry run that lists what would be reversed. Call again with confirm: true to write the reversals. Each reversal is a new retraction, so an undo can itself be undone. Only facts can be undone; other events are listed as skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | The actor whose changes to reverse, as shown by list_changes. | |
| since | Yes | Start of the window: an RFC 3339 time, or a duration back from now such as 30m, 2h or 24h. | |
| until | No | End of the window, RFC 3339. Defaults to now. | |
| reason | No | Why the changes are being undone. Recorded on every reversal. | |
| confirm | No | Set true to write the reversals. Leave unset for a dry run. | |
| entity_id | No | Only reverse changes to this entity. |