Select branch
select_branchSets and persists the active branch for a story so later reads and writes default to that branch; requires expected_revision for concurrency checks.
Instructions
Persist which branch is active for a story, so later reads and writes default to it. Requires expected_revision. Nothing about the branches themselves changes.
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>",
"branch_id": "<branch_id>",
"expected_revision": "<expected_revision>"
},
"name": "select_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| story_id | Yes | ||
| branch_id | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| revision | Yes | ||
| story_id | Yes | ||
| active_branch | Yes |