get_pull_request_files
Retrieve changed files from a pull or merge request to review code modifications and track updates in GitHub or GitLab repositories.
Instructions
Get list of files changed in a pull request or merge request
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_pull_request_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | No | Repository/project identifier (e.g., "owner/repo" or "group/project"). Optional if workingDirectory is provided. | |
| pullRequestNumber | No | Pull request number (IID). Optional if mergeRequestIid is provided. | |
| mergeRequestIid | No | Merge request IID (GitLab). Optional if pullRequestNumber is provided. | |
| provider | No | Git provider (github or gitlab) | gitlab |
| workingDirectory | No | Local repository path for auto-detecting project ID (aliases: working_directory, cwd) | |
| remoteName | No | Git remote name used for auto-detecting the project ID | origin |