Preview and create a Git commit
git_auto_commitInspect repository status and a bounded diff preview, then generate a Conventional Commit message and stage all non-ignored changes to commit them.
Instructions
Call first without commitMessage to inspect the repository status and a bounded diff preview. Then generate a Conventional Commit message from those changes and call again with commitMessage to stage all non-ignored repository changes and commit them. This tool modifies Git state; only commit after reviewing the preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commitMessage | No | Omit this for a status and diff preview. After reviewing the preview, provide a single-line Conventional Commit message to create the commit. | |
| repositoryPath | No | Optional repository directory. Defaults to TOOLBOX_GIT_REPOSITORY or the server's current working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| branch | Yes | ||
| status | Yes | ||
| message | Yes | ||
| commitId | Yes | ||
| gitStatus | Yes | ||
| diffTruncated | Yes | ||
| repositoryRoot | Yes |