git_action
Execute safe Git write operations—add, commit, push, pull, stash, checkout, and branch—using validated arguments to prevent unsafe repository changes.
Instructions
Run structured Git write operations (add, commit, push, pull, stash, checkout, branch) with strict argument safety.
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": {
"repoDir": "<repoDir>",
"action": "<action>"
},
"name": "git_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | ||
| action | Yes | ||
| remote | No | origin | |
| message | No | ||
| repoDir | Yes | ||
| extraArgs | No | ||
| branchName | No |