create_pull_request
Create a pull request to merge code changes from one branch into another on GitHub. Specify repository details, branches, title, and description to initiate code review and integration.
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 |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| title | Yes | PR title | |
| head | Yes | The branch that contains the changes (format: branch or user:branch for cross-repo) | |
| base | Yes | The branch to merge into | |
| body | No | PR description (markdown supported) | |
| draft | No | Create as draft PR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |