GitHub release diff
github_release_diffCompare two refs in a GitHub repository for release diffs, returning ahead/behind counts, commits, changed files, patches, and truncation flags.
Instructions
Compares two refs in one repository for a release diff, one core call: ahead/behind counts, total commits from ahead_by, up to 100 changed files with patches capped at 4000 bytes, and an optional projected commit list (include_commits defaults to true). total_files reports the full diff size; commits_truncated and files_truncated mark real cuts; each ref is URI-escaped. Returns {repo, from, to, status, ahead_by, behind_by, total_commits, commits, commits_truncated, total_files, files, files_truncated, meta}.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "github_release_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Head ref (branch, tag or sha) at the comparison end | |
| from | Yes | Base ref (branch, tag or sha) at the comparison start | |
| repo | Yes | Repository in owner/name form | |
| fresh | No | Bypass the local cache | |
| include_commits | No | Include the projected commit list, default true; false omits commits but keeps commits_truncated |