Comment On Post
comment_on_postPost a public comment on a LinkedIn post. Verify the comment box is reachable with a dry run before publishing the exact text.
Instructions
Post a first-level comment on a LinkedIn post.
The tool is annotated with destructiveHint so MCP clients will prompt for user confirmation before execution. This publishes the signed-in account's own words under someone else's post — it is public and permanent in every practical sense, which is why it never runs without confirm_comment=True.
With confirm_comment=False this does a dry run: it navigates to the post, verifies LinkedIn exposes a usable comment box, and reports back without writing anything. No draft text is left behind, so the call is safe to make first to check reachability before committing the words.
Keep each comment's own wording distinct from the others you post in a session. Identical or near-identical text under several posts within a short window reads as spam to LinkedIn regardless of how slowly it was typed, and that is the fastest way this tool can earn a restriction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | The exact text to publish as the signed-in account's own words. It is posted verbatim; nothing is rewritten. | |
| post_url | Yes | The permalink of the single post to comment on. Both of LinkedIn's forms are accepted — /posts/<slug> (as reported in get_feed or search_posts references) and /feed/update/urn:li:activity:<id>/ — from a full URL, a missing scheme, or a site-relative path. | |
| confirm_comment | Yes | Must be True to post. False returns confirmation_required after verifying the comment box exists. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||