repo_get_pull_request_by_id
Retrieves a pull request by repository ID and pull request ID, optionally including work item references. Use it to inspect PR details in Azure DevOps.
Instructions
Get a pull request by its ID.
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>"
},
"name": "repo_get_pull_request_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repositoryId | Yes | The repository ID. | |
| pullRequestId | Yes | The pull request ID. | |
| includeWorkItemRefs | No | Include work item references. |