Toggle comment reaction
toggle_comment_reactionToggle an emoji reaction on an OpenProject work-package comment to acknowledge it or take the reaction back, then return the comment's full reaction state and whether you now reacted.
Instructions
React to a work-package comment with an emoji, or take your reaction back.
Use this for the lightweight acknowledgement a comment does not deserve:
š on a decision, š to say you are looking at it, š when something
shipped. Returns the comment's full reaction state afterwards ā every
emoji on it with the people who picked it ā plus reacted, which says
whether you are now among them.
Pitfalls. This is a toggle, not an add: calling it twice with the
same reaction leaves the comment exactly as it started, so it is not safe
to retry blindly after a timeout ā read reacted from the result
instead. Reactions belong to the authenticated account; you cannot react
on someone else's behalf and cannot remove their reaction. Only comment
entries can be reacted to ā a field-change journal entry ("Status changed
from New to In progress") is refused by OpenProject with a 400. The
feature needs OpenProject 16.0 or newer; an instance known to be older
is refused up front with a version hint rather than pretending to have
reacted, and one whose version is not readable answers 404 instead.
Cross-references: list_work_package_comments reads the thread and
produces activity ids; add_work_package_comment says something in
words when an emoji is not enough; get_instance_info reports the
detected OpenProject version.
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": {
"activity_id": "<activity_id>",
"reaction": "<reaction>"
},
"name": "toggle_comment_reaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reaction | Yes | Which emoji to toggle. OpenProject accepts exactly eight: thumbs_up (š), thumbs_down (š), grinning_face_with_smiling_eyes (š), confused_face (š), heart (ā¤ļø), party_popper (š), rocket (š), eyes (š). Passing the emoji character itself is rejected ā use these names. | |
| activity_id | Yes | Id of the comment to react to. It comes from list_work_package_comments (the 'id' of an entry with kind='comment') or from add_work_package_comment's result ā it is an activity id, not a work package id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| message | Yes | ||
| reacted | No | ||
| reaction | Yes | ||
| reactions | No | ||
| activity_id | Yes |