createDraftPullRequest
Creates a draft pull request to share work-in-progress changes and gather feedback before the PR is ready for merge.
Instructions
Create a draft pull request (equivalent to createPullRequest with draft=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": {
"owner": "<owner>",
"repo": "<repo>",
"title": "<title>",
"head": "<head>",
"base": "<base>"
},
"name": "createDraftPullRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Target branch name | |
| body | No | PR description (markdown) | |
| head | Yes | Source branch name | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| title | Yes | PR title |