Git Commit
git_commitCommits staged changes using a provided commit message, adhering to Conventional Commits, with clear error feedback if nothing is staged.
Instructions
Commit the currently staged changes with the given message (the agent-authored Conventional Commit).
Fails with an actionable message if nothing is staged.
Args:
message (string): the full commit message (subject + optional body)
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { sha, shortStat }
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 |
|---|---|---|---|
| message | Yes | Full commit message | |
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |