close_branch
Temporarily archive a branch to clean up your workspace while keeping it recoverable. Reopen it later with open_branch; use delete_branch instead for permanent removal.
Instructions
Close a branch (a soft, reversible archive — reopen it later with open_branch). Cannot close the current branch or a permanent branch. Does not reload the editor. When NOT to use: to permanently remove a branch (use delete_branch).
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": {
"branchId": "<branchId>"
},
"name": "close_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchId | Yes | Id of the branch to close (from list_branches) |