Actions13
Revert Message
AI-generatedSummary
Reverts a specified message in an OpenCode session by sending its session ID and message ID to the session revert endpoint. Use it to undo changes associated with that message.
Inputs
- Session ID (required) — ID of the session to revert.
- Message ID (required) — ID of the message to revert.
Output shape
A single item containing an object with an ok field.
The
okvalue comes from the revert endpoint response. Each input item is handled separately; with Continue On Fail enabled, errors produce an item containing anerrorfield.