close_issue
Close a GitHub issue. Optionally add a comment and set the reason to completed or not planned.
Instructions
Close a GitHub issue with optional comment and reason.
Optional:
comment: add closing comment before closing
state_reason: "completed" or "not_planned"
Returns: {number, state, state_reason, comment_added, url}
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_number": "<issue_number>"
},
"name": "close_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes | ||
| comment | No | ||
| state_reason | No | ||
| owner | No | ||
| repo | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||