create_pull_request
Creates a GitHub pull request to merge changes from a head branch into a base branch, with title and optional description or draft status.
Instructions
Create a new pull request
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": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | The branch you want to merge into | |
| body | No | PR description | |
| head | Yes | The branch with your changes | |
| repo | Yes | Repository name | |
| draft | No | Create as draft PR | |
| owner | Yes | Repository owner | |
| title | Yes | PR title |