create_branch
Creates a new GitHub branch from a specified commit SHA so agents can isolate changes or start work from a chosen point.
Instructions
Create a new 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>",
"branch": "<branch>",
"sha": "<sha>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | SHA of the commit to branch from | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| branch | Yes | New branch name |