get_pr_changes
Retrieve code changes (diff) from GitHub or GitLab pull/merge requests, with optional file extension filtering to focus on specific file types.
Instructions
Get PR/MR code changes (diff) with optional file extension filtering
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": {
"provider": "<provider>",
"repo": "<repo>",
"pr_id": "<pr_id>"
},
"name": "get_pr_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Code hosting provider | |
| repo | Yes | Repository path | |
| pr_id | Yes | PR/MR number | |
| host | No | GitLab host for self-hosted instances | |
| file_extensions | No | Filter files by extensions (e.g., ['.py', '.js']) |