like_comment
Like a comment or a reply on a LinkedIn post, as the connected account or, with page_id, as a company page it administers. Use to acknowledge a comment without answering it, e.g. on the account's own posts (comment_urn from scrape_my_posts) or a page's (list_page_activity, same page_id); to answer in words use reply_comment. Idempotent on LinkedIn's side. Counts against the daily reactions quota.
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": {
"account_id": "<account_id>",
"comment": "<comment>"
},
"name": "like_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | The comment: urn:li:comment:(…) (comment_id from scrape_post, comment_urn from scrape_my_posts, list_page_activity or list_notifications), urn:li:fsd_comment:(…), or the comment's link (with commentUrn= or replyUrn=). | |
| page_id | No | Act as this company page instead of the member: page_id (or vanity name) from list_managed_pages. The account must be an admin of the page with a role that allows the action. Omit to act as the member. | |
| account_id | Yes | Reach id of the LinkedIn account to act on, from list_accounts. | |
| idempotency_key | No | Optional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| liked | No | ||
| comment_urn | No | The comment as urn:li:comment:(…) |