create_pull_request
Open a GitHub pull request from a feature branch to a base branch, with built-in branch safety validation to prevent unsafe merges.
Instructions
Open a Pull Request with built-in branch safety validation.
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>",
"head": "<head>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Target base branch (default: 'main'). | |
| body | No | PR description in markdown. | |
| head | Yes | Feature branch name containing changes. | |
| repo | Yes | Target repository in 'owner/repo' format. | |
| title | Yes | Pull Request title. |