git_branch_delete
Deletes a Git branch by name, with an optional force flag to remove unmerged branches. Use it to clean up stale or merged branches in a repository.
Instructions
Delete a 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": {
"branchName": "<branchName>"
},
"name": "git_branch_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force delete the branch even if not fully merged | |
| repoPath | No | Path to git repository (defaults to current directory) | |
| branchName | Yes | Name of the branch to delete |