Git Tag
git_tagManage Git tags to mark releases and milestones. Create annotated or signed tags at specific commits, list existing versions, or delete obsolete tags to organize repository history.
Instructions
Manage tags: list all tags, create a new tag, or delete a tag. Tags are used to mark specific points in history (releases, milestones).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| mode | No | The tag operation to perform. | list |
| tagName | No | Tag name for create/delete operations. | |
| commit | No | Commit to tag (default: HEAD for create operation). | |
| message | No | Tag message (creates annotated tag). For release tags, summarize the notable changes. | |
| annotated | No | Create annotated tag. Automatically set to true when message is provided. | |
| sign | No | Sign the commit/tag with GPG. | |
| forceUnsignedOnFailure | No | If GPG/SSH signing fails, retry the tag creation without signing instead of failing. | |
| force | No | Force tag creation/deletion (overwrite existing). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| mode | Yes | Operation mode that was performed. | |
| tags | No | List of tags (for list mode). | |
| created | No | Created tag name (for create mode). | |
| deleted | No | Deleted tag name (for delete mode). |