Create branch
create_branchCreate a new Git branch in a Forgejo or Gitea repository, optionally basing it on a specific existing branch instead of the default branch.
Instructions
Create a branch from an existing branch (default: the repo's default 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>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization) | |
| branch | Yes | New branch name | |
| from_branch | No |