github_git_refs_create
Create a branch or tag pointing at an existing commit using a fully qualified ref and its commit SHA in a GitHub repository.
Instructions
Create a branch or tag pointing at an existing commit. The reference must be fully qualified, like 'refs/heads/my-branch'.
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": {
"owner": "<owner>",
"repo": "<repo>",
"ref": "<ref>",
"sha": "<sha>"
},
"name": "github_git_refs_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The fully qualified reference, such as 'refs/heads/my-branch'. A bare branch name is rejected. | |
| sha | Yes | The commit SHA the new reference points at. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. |