open_pr
Create a pull request from one branch into another, showing the title and body for user approval before proceeding.
Instructions
Open a pull request from one branch into another. ALWAYS show the user the title and body and get their approval before calling.
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": "open_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to merge into (default: default branch) | |
| body | No | PR description (markdown) | |
| head | Yes | Branch with the changes | |
| repo | Yes | Repository name (without owner) | |
| draft | No | Open as a draft PR (default false) | |
| owner | No | Repo owner; defaults to GITHUB_DEFAULT_OWNER | |
| title | Yes | PR title |