Comment on a LinkedIn post
comment_createPublishes a LinkedIn comment on a post or a reply under a comment as the signed-in member after approval checks, with a clipboard fallback if the API blocks sending.
Instructions
Comments on one post, or replies under one comment, as the signed-in member, through LinkedIn's /v2/socialActions endpoint. The pre-publish gates run first and can block it; the trusted helper then shows the comment in a dialog and sends it only on a yes. If LinkedIn refuses the endpoint (403), it and every later call put the text on the clipboard and open the post, for the member to paste and send. Stops while the halt file exists. With LINKEN_DRY_RUN=1 it sends nothing and returns the requests.
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": {
"post": "<post>",
"text": "<text>"
},
"name": "comment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | Yes | The post: its URN (urn:li:activity:..., urn:li:share:... or urn:li:ugcPost:...) or its URL. A comment or reply link from "Copy link to comment" also works: it replies under that comment, with no parent needed. | |
| text | Yes | The comment, as plain text, up to 1,250 characters. | |
| parent | No | To reply under a comment: its URN, urn:li:comment:(urn:li:activity:...,...). |