create_pull_request
Create a pull request after verifying source and destination branches, preventing incomplete or partial PRs.
Instructions
Opens a new pull request. Requires title, sourceBranch, and destinationBranch; both branches are verified to exist before the PR is created so no partial PR is ever left behind. WRITE tool.
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": {
"repo": "<repo>",
"title": "<title>",
"sourceBranch": "<sourceBranch>",
"destinationBranch": "<destinationBranch>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| draft | No | ||
| title | Yes | ||
| reviewers | No | ||
| workspace | No | ||
| description | No | ||
| sourceBranch | Yes | ||
| closeSourceBranch | No | ||
| destinationBranch | Yes |