Comment on an issue or pull request
comment_on_issuePosts a Markdown comment on a Forgejo issue or pull request using the repository owner, name, and issue number; check prior comments before retrying to avoid duplicate posts.
Instructions
Post a comment on an issue or pull request (they share one numbering), as the write token's account; requires write mode. The body is Markdown and is public on a public repo: @mentions notify those users, and everyone watching the issue is notified. Not idempotent: calling twice posts twice, so check list_issue_comments before retrying a call whose result you did not see. Answers with the new comment in list_issue_comments' shape (id, user, body, created_at, url). To close, reopen or relabel, use edit_issue; for a pull-request review with a verdict, create_pull_request_review.
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>",
"index": "<index>",
"body": "<body>"
},
"name": "comment_on_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment body (Markdown). | |
| repo | Yes | Repository name. | |
| index | Yes | Issue or pull-request number. | |
| owner | Yes | Repository owner. |