| { |
| "name": "issue_write", |
| "description": "Create a new or update an existing issue in a GitHub repository.", |
| "inputSchema": { |
| "type": "object", |
| "properties": { |
| "assignees": { |
| "type": "array", |
| "items": { |
| "type": "string" |
| }, |
| "description": "Usernames to assign to this issue" |
| }, |
| "body": { |
| "type": "string", |
| "description": "Issue body content" |
| }, |
| "duplicate_of": { |
| "type": "number", |
| "description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'." |
| }, |
| "issue_fields": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "properties": { |
| "delete": { |
| "type": "boolean", |
| "description": "Set to true to clear this field's current value on the issue. Cannot be combined with 'value' or 'field_option_name'.", |
| "enum": [ |
| true |
| ] |
| }, |
| "field_name": { |
| "type": "string", |
| "description": "Issue field name (case-insensitive). Must match a field returned by list_issue_fields for this repository or its organization." |
| }, |
| "field_option_name": { |
| "type": "string", |
| "description": "Option name for single-select fields. Validated against the field's options before the API call. Cannot be combined with 'value' or 'delete'." |
| }, |
| "value": { |
| "type": [ |
| "string", |
| "number", |
| "boolean" |
| ], |
| "description": "Value to set. Use for text, number, and date fields (date as YYYY-MM-DD). For single-select fields, prefer 'field_option_name' so the option is validated before the API call. Cannot be combined with 'field_option_name' or 'delete'." |
| } |
| }, |
| "required": [ |
| "field_name" |
| ], |
| "additionalProperties": false |
| }, |
| "description": "Issue field values to set or clear. Each item requires 'field_name' and exactly one of 'value', 'field_option_name', or 'delete: true'." |
| }, |
| "issue_number": { |
| "type": "number", |
| "description": "Issue number to update" |
| }, |
| "labels": { |
| "type": "array", |
| "items": { |
| "type": "string" |
| }, |
| "description": "Labels to apply to this issue" |
| }, |
| "method": { |
| "type": "string", |
| "description": "Write operation to perform on a single issue.\nOptions are:\n- 'create' - creates a new issue.\n- 'update' - updates an existing issue.\n", |
| "enum": [ |
| "create", |
| "update" |
| ] |
| }, |
| "milestone": { |
| "type": "number", |
| "description": "Milestone number" |
| }, |
| "owner": { |
| "type": "string", |
| "description": "Repository owner" |
| }, |
| "repo": { |
| "type": "string", |
| "description": "Repository name" |
| }, |
| "state": { |
| "type": "string", |
| "description": "New state", |
| "enum": [ |
| "open", |
| "closed" |
| ] |
| }, |
| "state_reason": { |
| "type": "string", |
| "description": "Reason for the state change. Ignored unless state is changed.", |
| "enum": [ |
| "completed", |
| "not_planned", |
| "duplicate" |
| ] |
| }, |
| "title": { |
| "type": "string", |
| "description": "Issue title" |
| }, |
| "type": { |
| "type": "string", |
| "description": "Type of this issue. Only use if issue types are enabled for this repository. Use list_issue_types tool to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter." |
| } |
| }, |
| "required": [ |
| "method", |
| "owner", |
| "repo" |
| ] |
| } |
| } |