git_commit
Stage and commit code changes with a custom message, optionally targeting specific files. Automatically protects branches by requiring a feature branch and matches the repo's commit history style.
Instructions
Stage and commit changes. By default every modified and untracked file is staged; pass paths to commit a subset. Refuses to commit on a protected branch — create a feature branch first. Write the message in the style of the repository's recent commits (check git_log).
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 |
|---|---|---|---|
| paths | No | Only stage and commit these paths. Default: all changes. | |
| message | Yes | Commit message. First line is the subject; add a body after a blank line. | |
| workspace | No | Workspace alias. Defaults to the active workspace. |