comment_post
Post a comment on a LinkedIn post on behalf of the connected account. Use to write a new top-level comment on a post; to answer an existing comment use reply_comment. Counts against the daily comments quota; the text is public, preview it with the user.
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>",
"text": "<text>"
},
"name": "comment_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Comment text. | |
| 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. | |
| mentions | No | People to @mention. Write each name in text exactly as given here, without '@' (the full name, or the first name alone for a short mention); it becomes a link to the profile. Without this, '@Name' in the text would stay plain text, so a comment with '@Name' and no mention for it is refused before anything is sent: pass the mention, or drop the '@'. The result's mentions field says whether LinkedIn kept them: applied, not_applied (mentions_not_applied lists the names left as plain text; the comment is posted all the same, do not post it again) or unverified. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mentions | No | Only when mentions were passed: whether LinkedIn kept them as links. | |
| commented | No | ||
| mentions_not_applied | No | Names LinkedIn left as plain text. The comment is posted: do not post it again. |