Get Project Branch Tool
get_project_branch_toolRetrieve a single GitLab repository branch by specifying the project ID or path and branch name, so you can inspect branch details within your workflow.
Instructions
Get a single repository 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": {
"project_id": "<project_id>",
"branch": "<branch>"
},
"name": "get_project_branch_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||