git_push
Push committed changes to a remote repository, specifying branch, remote, and optional force-push with confirmation when required.
Instructions
Push commits to a remote repository.
Requires explicit confirmation when security.require_confirmation
is enabled in config (default: True).
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 |
|---|---|---|---|
| force | No | If True, force-push (--force-with-lease for safety). | |
| branch | No | The branch to push. Defaults to the current branch. | |
| remote | No | The remote name. Default: "origin". | origin |
| confirm | No | Set to True to confirm this potentially destructive operation when confirmation is required by config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||