Getprojectsprojectidhead
getProjectsProjectIdHEADRetrieves the branch name that HEAD points to for a specified Gerrit project, helping identify its default branch.
Instructions
Retrieves for a project the name of the branch to which HEAD points.
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": {
"project-id": "<project-id>"
},
"name": "getProjectsProjectIdHEAD"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project-id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |