create_pull_request
Creates a pull request in Azure DevOps, including reviewers, linked work items, and tags. Enables code review and work item tracking.
Instructions
Create a new pull request, including reviewers, linked work items, and optional tags
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>",
"title": "<title>",
"sourceRefName": "<sourceRefName>",
"targetRefName": "<targetRefName>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | List of tags to apply to the pull request | |
| title | Yes | The title of the pull request | |
| isDraft | No | Whether the pull request should be created as a draft | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| reviewers | No | List of reviewer email addresses or IDs | |
| description | No | The description of the pull request (markdown is supported) | |
| repositoryId | Yes | The ID or name of the repository | |
| workItemRefs | No | List of work item IDs to link to the pull request | |
| sourceRefName | Yes | The source branch name (e.g., refs/heads/feature-branch) | |
| targetRefName | Yes | The target branch name (e.g., refs/heads/main) | |
| organizationId | No | The ID or name of the organization (Default: mycompany) | |
| additionalProperties | No | Additional properties to set on the pull request |