Get a branch
repo_branch_getRetrieve a repository branch and its head commit to inspect branch state or confirm the current commit reference.
Instructions
Get one branch with its head commit.
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": {
"repo": "<repo>",
"branch": "<branch>"
},
"name": "repo_branch_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository path, e.g. "owner/repo" or "group/subgroup/repo" | |
| branch | Yes | Branch name |