git_commit
Creates a Git commit with a message to record repository changes; supports amending the previous commit or committing specific files after automatic staging.
Instructions
Record changes to the repository
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": {
"message": "<message>"
},
"name": "git_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amend | No | Amend the previous commit | |
| files | No | Specific files to commit (will be staged automatically) | |
| message | Yes | Commit message | |
| repoPath | No | Path to git repository (defaults to current directory) |