git_commit_amend
Add files to a recent commit, amending HEAD or creating a fixup commit for earlier changes.
Instructions
Amend files to the last commit created by git_commit. If the commit is still HEAD, uses git commit --amend. Otherwise, uses git commit --fixup to create a fixup commit.
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": {
"files": "<files>"
},
"name": "git_commit_amend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | List of file paths to add to the commit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |