Reset Session Branch
reset_session_branchReset or switch the active session branch to control where writes go: omit the branch to start a fresh change set on the next write, or name a branch to target it.
Instructions
Reset or switch the active session branch for the calling client.
Use this to recover or take control of which branch your writes target:
No
branch— clears the cached session branch; the next write auto-creates a fresh one. Useful after you have merged your work and want to start a new change set.With
branch— makes the named branch the session branch. If it does not exist and the name matches the configured branch pattern, it is created and reported. The instance default branch and merged/read-only branches are rejected.
Note: a merged or deleted session branch is recovered automatically on the next write — this tool is the explicit override on top of that.
Scope: the session branch is kept per authenticated caller, and per MCP session when the client has one. Without credentials or an MCP session, all clients of the server share one session branch. A reset or switch applies to every conversation that shares the session branch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reset_session_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Target branch. Omit to drop the cached session branch so the next write creates a fresh one. Provide a name to make that branch the session branch (created if it does not exist and the name matches the configured pattern). |