get_branch
Retrieve the current commit SHA for a branch in an allowed repository. Provide the branch name to get its latest commit identifier for tracking or verification.
Instructions
Read the current commit SHA for a branch in an allowed repository.
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": {
"account": "<account>",
"repository": "<repository>",
"branch": "<branch>"
},
"name": "get_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| account | Yes | ||
| hostname | No | ||
| repository | Yes | Repository in owner/name format |