get_commit_context
Retrieves the staged Git diff and effective commit-message rules for a local repository so you can generate and validate commit-message suggestions.
Instructions
Get the staged Git diff and effective commit-message rules for a local repository. Returns a status of "changes" or "no_changes", the diff, and the rules to use when generating commit-message suggestions.
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": {
"repositoryPath": "<repositoryPath>"
},
"name": "get_commit_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repositoryPath | Yes |