fetch_code_diff
Retrieve code changes for pull requests or commits to review modifications in specific files or entire repositories.
Instructions
Fetch code diff for a pull request or commit
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": {
"repository": "<repository>"
},
"name": "fetch_code_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | Repository in format "owner/repo" | |
| pullRequestNumber | No | Pull request number (optional if commitSha is provided) | |
| commitSha | No | Commit SHA (optional if pullRequestNumber is provided) | |
| filePath | No | Specific file path to get diff for (optional) | |
| provider | No | Git provider (github or gitlab) | gitlab |