generate_commit_message
Generate commit messages for staged changes using conventional or simple formats to streamline version control workflows.
Instructions
Generate a suggested commit message based on staged changes.
This tool analyzes the staged and modified files to suggest a commit message. Note: This uses a simple heuristic (template-based), not a full LLM analysis of the diff content. It is useful as a starting point or for quick commits.
Styles:
"conventional": Uses Conventional Commits format (feat: ..., fix: ..., chore: ...) based on file types.
"simple": Returns a plain predictive sentence like "Update 3 files".
Args: repo_path: The absolute path to the repository. style: The message style format to use. Defaults to "conventional".
Returns: A string containing the suggested commit message and a brief summary of detected changes.
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": {
"repo_path": "<repo_path>"
},
"name": "generate_commit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| style | No | conventional |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |