git_branch
Create a Git branch from a specified start point or delete a branch, requiring explicit force to remove unmerged branches.
Instructions
Create a branch or delete one, requiring explicit force for unmerged deletion.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "git_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| action | Yes | ||
| start_point | No | HEAD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| changes | Yes | ||
| updates | No | ||
| conflicts | Yes | ||
| operation | Yes | ||
| head_after | Yes | ||
| head_before | Yes | ||
| process_ids | Yes | ||
| synchronization_error | No |