engage_with_comment
Apex only. Act on a comment: reply to it or like it — as yourself or, with organization_id, in a Company Page’s voice (you must administer the page). action="reply" needs post_id, comment_id and text; as yourself it counts against your daily reply budget (shared with automations). action="like" needs only comment_id and is unlimited. Provide author_provider_id when you have it so the do-not-engage (archived) list is honored. Get organization_id from list_companies.
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": {
"action": "<action>",
"comment_id": "<comment_id>"
},
"name": "engage_with_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Reply text (required for action="reply"). | |
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| action | Yes | What to do with the comment. | |
| post_id | No | The post the comment is on (required for action="reply"). | |
| comment_id | Yes | The provider comment id to act on. | |
| reply_type | No | Which reply budget bucket this counts against. Default first_degree. (Ignored for Company-Page replies.) | |
| reaction_type | No | Reaction for action="like" (default "like"). | |
| organization_id | No | Optional numeric Company Page id (from list_companies). When set, the reply/like is posted in that page’s voice instead of as yourself (Pro+). | |
| author_provider_id | No | The comment author’s provider id, used to honor your do-not-engage list. |