get_branch
Retrieve detailed information about a specific branch, including its latest commit. Optionally specify repository and workspace.
Instructions
Get detailed information about a specific branch.
Use this tool when you need complete details about a branch, including its latest commit information.
Args: branch_name: Name of the branch to get details for. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace.
Returns: JSON object with branch details including commit information.
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": {
"branch_name": "<branch_name>"
},
"name": "get_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | ||
| repository | No | ||
| branch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |