github_create_branch
Create a new branch from an existing branch or a specific commit SHA in a GitHub repository. Specify the owner, repo, branch name, and optional source branch or commit to branch from.
Instructions
Create a new branch from an existing branch or commit SHA.
Args: owner: Repository owner repo: Repository name branch_name: Name for the new branch from_branch: Source branch name (default: repo's default branch) from_sha: Specific commit SHA to branch from (overrides from_branch) session_name: GitHub session to use
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_name": "<branch_name>"
},
"name": "github_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| from_sha | No | ||
| branch_name | Yes | ||
| from_branch | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |