github_pulls_update
Update a GitHub pull request's title, body, state, or base branch to revise or close PRs during automated dev workflows.
Instructions
Update a pull request's title, body, state or base branch. Closing one is state: closed; there is no REST way to change its draft status.
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>",
"pullNumber": "<pullNumber>"
},
"name": "github_pulls_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The branch to merge into. It must already exist on this repository; a pull request cannot be repointed at another repository. | |
| body | No | The new description. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. | |
| state | No | Whether the pull request is open or closed. | |
| title | No | The new title. | |
| pullNumber | Yes | The number that identifies the pull request. | |
| maintainerCanModify | No | Whether maintainers can commit to the head branch. |