openclaw_sessions_compaction_restore
Restore a session to a previous compaction snapshot. Overwrites current state to roll back changes or recover lost data.
Instructions
Restore a session to a previous compaction snapshot. Wraps sessions.compaction.restore. Destructive — overwrites current session state with the snapshot. The current state is lost unless you branched first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Compaction snapshot id. | |
| instance | No | Optional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list. | |
| sessionId | No | Optional session id; required when the snapshot id is ambiguous. |