Edit a GitHub issue
github_issue_editEdit a GitHub issue in one call: change title, body, labels, assignees, milestone, or organization issue fields, with inputs validated before any write.
Instructions
Change an issue in one call: title, body (body replaces it, append_body adds after a blank line), kind (an Issue Type, else a type: label that replaces the other type: labels), labels and assignees to add or remove (added assignees are notified), milestone or remove_milestone, and organization issue fields to set or clear. A milestone that does not exist is an error unless create_milestone is true. Issue fields, their options and values are checked before anything is written; a repository without issue fields refuses them. Needs write permission on the repository. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
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": {
"issue": "<issue>"
},
"name": "github_issue_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The new body, which replaces the whole old one; empty clears it. | |
| kind | No | Such as bug: the organization's Issue Type of that name, else the type:<kind> label, replacing other type: labels. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. | |
| issue | Yes | The issue, as 12, #12, owner/repo#12 or its URL. | |
| title | No | The new title. | |
| milestone | No | A milestone title to set. | |
| add_labels | No | Labels to add; they must exist. | |
| append_body | No | Text added after the current body, set off by a blank line. | |
| issue_fields | No | The organization's issue fields to set, by field name (without regard to case): {"Priority": "High", "Target date": "2026-12-01"}. Each takes a text, a number, a date as YYYY-MM-DD, an option name, or a list of option names for a multi-select field. | |
| add_assignees | No | Logins, or "@me". | |
| remove_labels | No | ||
| create_milestone | No | Create the milestone when it does not exist; needs milestone. | |
| remove_assignees | No | ||
| remove_milestone | No | Take the issue out of its milestone. | |
| clear_issue_fields | No | Issue fields to clear, by name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | Yes | Where the kind landed; null when none was given. | |
| repo | Yes | ||
| issue | Yes | ||
| changed | Yes | The arguments that were applied. | |
| foreign | Yes | ||
| milestone | Yes | The milestone that was set; null when none was set or it was removed. | |
| issue_fields | Yes | The issue's field values after the edit, by field name; null when issue_fields and clear_issue_fields were not given, or when the values could not be read back. |