like_post
Like a LinkedIn post on behalf of the connected account. Pass the post URL, slug, or URN. Use for a light touch on a post; 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>",
"post_url_or_urn": "<post_url_or_urn>"
},
"name": "like_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| post_url_or_urn | Yes | LinkedIn post URL, slug, or urn:li:activity:…; a comment URN (urn:li:comment:(…)) likes that comment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| liked | No |