Reword Commit
git_reword_commitRewrites the message of any Git commit using non-interactive rebase or amend for HEAD, requiring a clean working directory.
Instructions
Updates the message of a specific commit in history. If it is the latest commit (HEAD), uses git commit --amend. Otherwise performs a fully non-interactive rebase sequence (no editor prompts). Requires a clean working directory. Rewrites history for the target commit and everything after it.
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": {
"commit_hash": "<commit_hash>",
"new_message": "<new_message>"
},
"name": "git_reword_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit_hash | Yes | The hash (full or abbreviated, min 4 hex chars) of the commit to reword. | |
| new_message | Yes | The replacement commit message. |