Compare two refs
repo_diff_compareCompare two Git refs (base and head) in a CNB repository to retrieve the diff between them.
Instructions
Get the diff between two refs (base and head), e.g. base=main head=feature-x.
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": {
"repo": "<repo>",
"base": "<base>",
"head": "<head>"
},
"name": "repo_diff_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base ref | |
| head | Yes | Head ref | |
| repo | Yes | Repository path, e.g. "owner/repo" or "group/subgroup/repo" |