Get Branch
get_branchFetch a branch's endpoints, schemas, and folder counts. Optionally compare against main for conflicts and breaking changes, or preview rebase status to assess merge readiness.
Instructions
Get one branch with how many endpoints, schemas and folders live on it. Set includeDiff for the change summary against main, the conflicts and the classified (breaking / non-breaking) changes — that is the read to trust before merging. Set includeRebasePreview to see how far the branch is behind main and what a rebase would have to resolve. Requires project context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | Public ID (GUID) of the API specification | |
| branchId | Yes | Public ID (GUID) of the branch | |
| includeDiff | No | Also return the diff against main: counts, conflicts, classified changes (default false) | |
| includeRebasePreview | No | Also return the rebase preview: behind count and conflicting clones (default false) |