Github Update Pr
github_update_prUpdate an existing pull request by changing only the fields you supply, such as title, body, base branch, state, or labels, while preserving all other current values.
Instructions
Updates an existing pull request. Only the fields supplied are sent, the rest keep their current values, so a title can change without restating the body. Labels take a second call, since the pull request endpoint does not take them. That call answers with the issue, which has no head, base or reviewers, so a labels-only update reads the pull request back.
Workflow and conventions: github_get_skill('pr-management').
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_owner": "<repo_owner>",
"repo_name": "<repo_name>",
"pr_number": "<pr_number>"
},
"name": "github_update_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to retarget the pull request onto | |
| body | No | Replacement body in Markdown. Omit to leave the current body alone | |
| state | No | Omit to leave the state alone | |
| title | No | Replacement title. Omit to leave the current title alone | |
| labels | No | Replacement label set. Omit to keep the current labels, pass [] to strip them all. The 'mcp' tracking label is not re-added here | |
| pr_number | Yes | ||
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| title | Yes | ||
| author | Yes | ||
| labels | Yes | ||
| merged | Yes | ||
| commits | Yes | ||
| base_ref | Yes | ||
| head_ref | Yes | ||
| head_sha | Yes | ||
| is_draft | Yes | ||
| additions | Yes | ||
| assignees | Yes | ||
| deletions | Yes | ||
| mergeable | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| description | Yes | ||
| changed_files | Yes | ||
| mergeable_state | Yes | ||
| requested_teams | Yes | ||
| requested_reviewers | Yes |