git_branch_info
Compare the current branch's commits against a base branch, returning repository info as YAML. Resolves remote or local main/master when no base is specified, ideal for reviewing changes without computing an explicit range.
Instructions
Analyze the current branch's commits against a base branch and return repository information as YAML. Use this when you want the diff against main/master (or another base) without computing an explicit range; use git_view_commits instead when you already have a range. Mirrors omni-dev git branch info.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_branch_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Base branch to compare against, e.g. `main` or `develop`. When omitted, resolved remote-first: `origin/main`, `origin/master`, local `main`, then local `master`. | |
| repo_path | No | Path to the git repository. Defaults to the current working directory. |