get_default_branch
Retrieve the default branch and last commit info for a project, providing the base branch needed for comparisons and merge requests.
Instructions
Get the default (main) branch of a project with full details including last commit info. Use this when you need the base branch name for comparisons or merge requests.
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>",
"project": "<project>"
},
"name": "get_default_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Project owner alias | |
| project | Yes | Project alias |