Git Commit Tools
git_commitsManage Git commit workflows: stage changes, create or amend commits, unstage, reset, revert, undo, and handle work-in-progress or cleanup actions.
Instructions
Commit-area tool. Use action=add|restore|commit|reset|revert|undo|nuke|wip|unstage|amend.
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_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| ref | No | ||
| mode | No | mixed | |
| sign | No | Sign the commit. Defaults to the server GIT_AUTO_SIGN_COMMITS setting. | |
| amend | No | ||
| paths | No | ||
| action | No | commit | |
| source | No | ||
| staged | No | ||
| target | No | ||
| confirm | No | ||
| message | No | ||
| no_edit | No | ||
| mainline | No | ||
| worktree | No | ||
| no_commit | No | ||
| no_verify | No | ||
| repo_path | No | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. | |
| signing_key | No | ||
| response_format | No | Output format for the response. | markdown |