github_create_pull_request
Create a GitHub pull request by specifying source and target branches, title, body, and optional draft status. Merge changes between branches.
Instructions
Create a pull request in a GitHub repository. Specify source and target branches, title, and body.
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": "github_create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | The branch to merge into (target), e.g. 'main' | |
| body | No | PR description (supports Markdown) | |
| head | Yes | The branch containing changes (source). Use 'user:branch' for cross-fork PRs. | |
| repo | Yes | Repository name | |
| draft | No | Create as a draft PR. Default: false | |
| owner | Yes | Repository owner | |
| title | Yes | Pull request title |