get_current_git_branch
Detect the current git branch name before creating a pull request. Returns the branch name or error if not in a git repository.
Instructions
Get the current git branch name.
Use this tool to detect what branch you're currently on before creating a pull request. This is useful for auto-detecting the source branch.
Returns: JSON object with the current branch name, or error if not in a git repository.
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": "get_current_git_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |