Apply an action to comments
apply_comment_actionsApplies one action to the listed comments and reports the outcome per comment. Changes inside replient.ai (mark_done, mark_open, mark_read, mark_unread, add_tags, remove_tags, set_sentiment) take up to 100 ids and run in parallel. Team actions work as in the inbox: assign (up to 50 ids, to "me" or a team member who can open comments; the assignee is notified in replient.ai and by email unless they are the caller; skipped where already assigned to them), unassign, and add_note (one comment, a note the whole team sees; mentioned team members are notified). like, unlike, hide and unhide reach the social platform: up to 50 ids, one at a time, and the rest is skipped when the platform asks to slow down. A platform action on more than one comment, and every delete or block_author, needs a confirmation. Comments the action does not fit (for example blocking on Instagram, hiding a mention, tags on the brand's own replies) are skipped with the reason. Repeating an action that is already in effect changes nothing. Only tags the brand has set up are accepted (the error lists them). Each comment costs one rate-limit point. May first return a confirmation summary and token instead of acting.
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": {
"brand": "<brand>",
"ids": "<ids>",
"action": "<action>"
},
"name": "apply_comment_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comment ids from list_comments; a single comment is [id]. Up to 100, 50 for actions that reach the platform and for assign and unassign, one for add_note. | |
| brand | Yes | ||
| action | Yes | In replient.ai: mark_done, mark_open, mark_read, mark_unread, add_tags, remove_tags, set_sentiment. Team: assign (params.userId; notifies the assignee, also by email, unless they are the caller), unassign, add_note (params.text and optional params.mentionUserIds; one comment; mentioned people are notified). On the platform: like, unlike, hide, unhide (hidden comments stay visible to their author and friends), delete (for everyone, cannot be undone), block_author (blocks the comment author from the page and moves their comments to done). | |
| params | No | ||
| confirmationToken | No |