Comment on an issue or PR
forgejo_comment_issueAdd a comment to an issue or pull request in a Forgejo repository. Provide the issue number and markdown body to post the comment.
Instructions
Adds a comment to an issue or a pull request (shared numbering).
Parameters: owner, repo, number (required), body (string, required), response_format.
Returns: { id, author, created_at, html_url }
Write operation: requires the 'write:issue' scope. The comment is attributed to the token's owner and cannot be deleted by this tool.
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": {
"number": "<number>",
"body": "<body>"
},
"name": "forgejo_comment_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment body, in markdown. | |
| repo | No | Repository name. Defaults to FORGEJO_DEFAULT_REPO. | |
| owner | No | Repository owner (user or organisation). Defaults to FORGEJO_DEFAULT_OWNER. | |
| number | Yes | Issue or pull request number. | |
| response_format | No | 'markdown' for a readable rendering, 'json' for the full data. | markdown |