git_push
Push a local Git branch to a configured remote, with optional upstream setup for tracking.
Instructions
Push a Git branch to a remote using Git directly. This is an external mutation and is approval-gated by the developer policy.
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": "git_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| branch | No | Branch; defaults to the current branch. | |
| remote | No | Remote name; defaults to origin. | |
| set_upstream | No |