gitCommit
Commit staged changes with a message, optionally staging specific files or all tracked changes first. Returns commit hash, branch, and files.
Instructions
Commit staged changes. Pass files to stage-and-commit in one step. Returns hash, branch, files.
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": "gitCommit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to stage before committing. Omit to commit already-staged changes. | |
| addAll | No | Stage all tracked changes before committing (git add -u). Default: false. | |
| message | Yes | Commit message |