ngit_pr_diff
Fetches a PR's diffstat and unified diff (merge-base..tip) from its git servers for code review. Returns the full change set for a given repo and PR id.
Instructions
The code change of a PR: diffstat + unified diff (merge-base..tip), fetched from its git servers.
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>",
"id": "<id>"
},
"name": "ngit_pr_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| repo | Yes | nostr://<npub or name@domain>/<relay>/<identifier>, or naddr1... | |
| fresh | No | force a network refresh instead of serving the live cache | |
| max_bytes | No |