Branch story
branch_storyFork a story at a chosen turn to create a new branch with history only up to that point, leaving the source branch unchanged—use it for regeneration or revision without overwriting the original.
Instructions
Fork the story at a turn, creating a new branch that inherits history only up to that fork point. Nothing is copied or erased: the source branch is left exactly as it was, and later source turns do not appear on the new branch. Use this for a regeneration or a revision instead of overwriting an original turn.
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": {
"story_id": "<story_id>",
"fork_turn_id": "<fork_turn_id>",
"expected_revision": "<expected_revision>"
},
"name": "branch_story"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| select | No | ||
| story_id | Yes | ||
| fork_turn_id | Yes | ||
| from_branch_id | No | ||
| idempotency_key | No | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| note | Yes | The source branch is unchanged by a fork. | |
| branch | Yes | ||
| revision | Yes | ||
| selected | Yes | ||
| story_id | Yes | ||
| fork_turn_id | Yes | ||
| source_branch_id | Yes | ||
| idempotent_replay | No | True when this result was replayed from an earlier identical call. |