repo_pull_request_write
Create Azure DevOps pull requests after verifying branches, or update title, description, or draft state; writes require an allowed repository.
Instructions
Create a PR after verifying both remote branches, or update its title, description, or draft state. Writes require a process-configured ADO_ALLOWED_REPOSITORIES entry; otherwise they are disabled. The agent supplies project/repository and local Git context. No merge, completion, autocomplete, policy bypass, retargeting, or branch deletion is supported. After an uncertain write outcome, list PRs before retrying.
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": {
"action": "<action>",
"repository": "<repository>"
},
"name": "repo_pull_request_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Required for create; optional for update. | |
| action | Yes | ||
| isDraft | No | Create as draft, or change draft state on update. | |
| project | No | Project name or ID. Defaults to ADO_PROJECT; discover with server_info/list_projects. | |
| repository | Yes | Repository name or ID in the selected project. | |
| description | No | PR description. Empty string clears it on update. | |
| sourceBranch | No | Required for create. Push the branch through Git first. | |
| targetBranch | No | Required for create, such as develop. | |
| pullRequestId | No | Required for update; omit for create. |