git_commit
Create a commit from staged changes, with optional auto-staging of tracked files and explicit confirmation for secure operations.
Instructions
Create a commit with the staged changes.
Requires explicit confirmation when security.require_confirmation
is enabled in config (default: True).
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 |
|---|---|---|---|
| confirm | No | Set to True to confirm this destructive operation when confirmation is required by config. | |
| message | Yes | The commit message. Required. | |
| all_changes | No | If True, automatically stage all tracked file changes before committing (equivalent to ``git commit -a``). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||