Create pull request
create_pull_requestCreate a pull request in Azure Repos by specifying repository, source and target branches, title, and confirmation. Link work items and reviewers to streamline code review.
Instructions
Create a same-repository Azure Repos pull request. Requires write tools and confirm=true.
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>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>",
"title": "<title>",
"confirm": "<confirm>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| confirm | Yes | Must be true to perform the mutation. | |
| isDraft | No | ||
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| description | No | ||
| reviewerIds | No | Optional Azure DevOps identity IDs. | |
| workItemIds | No | Optional work items to link. | |
| repositoryId | Yes | Repository name or ID. | |
| sourceBranch | Yes | Source branch name or refs/heads/... ref. | |
| targetBranch | Yes | Target branch name or refs/heads/... ref. | |
| supportsIterations | No | Track subsequent source-branch pushes as reviewable iterations. |