Get pull request file diff
get_pull_request_file_diffRetrieve the unified diff for a single file in a pull request, enabling focused review of changes made in that file.
Instructions
Return the locally generated unified diff for one file in a pull request.
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": {
"repositoryId": "<repositoryId>",
"pullRequestId": "<pullRequestId>",
"path": "<path>"
},
"name": "get_pull_request_file_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| maxLines | No | ||
| startLine | No | ||
| iterationId | No | ||
| contextLines | No | ||
| repositoryId | Yes | Repository name or ID. | |
| pullRequestId | Yes | Pull request numeric ID. |