Undo a flow change
revert_flow_revisionUndoes a flow change the way the Automations editor's Recent changes does, writing the flow's prior snapshot back. Pass revisionId to undo one flow's change, or batchId to undo one apply that touched several flows at once (the 5-second Undo toast). read('flow_revisions', { flow }) lists a flow's changes, newest first, each with its id, summary, created_at and whether it was already reverted_at; a change already undone is refused rather than applied twice. Nothing is sent. Pass the same idempotency_key when retrying; a repeat returns the same answer.
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": {
"idempotency_key": "<idempotency_key>"
},
"name": "revert_flow_revision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batchId | No | Undo one apply that touched several flows: the revision's batch_id from read('flow_revisions'). | |
| revisionId | No | Undo one flow's change: the revision id from read('flow_revisions'). | |
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |