openclaw_sessions_compaction_branch
Create a new session branching from a compaction snapshot to explore alternative continuations while preserving the original session state.
Instructions
Create a NEW session that starts from a previous compaction snapshot of an existing session. Wraps sessions.compaction.branch. Use this when you want to explore an alternative continuation without losing the current session state.
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": {
"id": "<id>"
},
"name": "openclaw_sessions_compaction_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Compaction snapshot id to branch from. | |
| title | No | Title for the new branched session. | |
| 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 | Source session id, when the snapshot id is ambiguous. |