merge_pull_request
Merge an open pull request only when its current head exactly matches the expected SHA, using a required merge method (merge, squash, or rebase) with optional commit text passed via stdin.
Instructions
Merge an open pull request only when its current head exactly matches expectedHeadSha. A merge method is required; optional commit text is sent through stdin and is not audited.
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": {
"account": "<account>",
"repository": "<repository>",
"pullRequestNumber": "<pullRequestNumber>",
"expectedHeadSha": "<expectedHeadSha>",
"mergeMethod": "<mergeMethod>"
},
"name": "merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| hostname | No | ||
| repository | Yes | Repository in owner/name format | |
| commitTitle | No | ||
| mergeMethod | Yes | ||
| commitMessage | No | ||
| expectedHeadSha | Yes | ||
| pullRequestNumber | Yes |