git_push_new_branch
Push a new branch to a git remote via a configured HTTP API. Optionally creates the local branch and sets upstream tracking.
Instructions
Ask the configured HTTP API to push a new branch to a git remote.
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": {
"branch": "<branch>"
},
"name": "git_push_new_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional local working directory or repository path. | |
| branch | Yes | New branch name to push. | |
| remote | No | Git remote name. | origin |
| startPoint | No | Optional start point used when creating the branch. | |
| createLocal | No | Create and switch to the local branch before publishing. | |
| setUpstream | No | Ask the API to set upstream tracking for the new branch. |