reply_comment
Post a reply to an existing LinkedIn comment. Pass the comment_id (URN) returned by scrape_post as comment_urn — it is used directly as threadUrn. Use to answer a specific comment (comment_urn from scrape_my_posts or scrape_post); for a new comment on the post itself use comment_post. Counts against the daily comments 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_urn": "<comment_urn>",
"text": "<text>"
},
"name": "reply_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Reply 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. | |
| comment_urn | Yes | URN of the comment to reply to (comment_id from scrape-post). | |
| 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 |
|---|---|---|---|
| replied | No | ||
| mentions | No | Only when mentions were passed: whether LinkedIn kept them as links. | |
| mentions_not_applied | No | Names LinkedIn left as plain text. The comment is posted: do not post it again. |