draft_commit_message_local
Generate conventional commit messages from a staged diff using a local Ollama model, avoiding cloud costs for routine commits.
Instructions
Draft a conventional-style commit message from a diff using the local model.
Use for routine commits where the cloud model's analysis isn't needed — it is cheap and fast. Runs locally at no cloud cost. Returns a single commit message (subject plus optional body) as text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | A staged diff, e.g. the output of `git diff --staged`. | |
| model | No | Ollama model name to run, e.g. 'llama3.1' or 'qwen2.5-coder'. Omit to use the server's configured default model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |