LinkedIn

comment-post

linkedin.com
InstallationInstalls just this skill for your agent
Side effectwrite-irreversible
Authsession
Needsnavigate · wait · type · click
Summary

Post a comment with the given text on a third-party LinkedIn post (by URN), from the logged-in account.

Params
{"urn":"string (urn:li:activity:...)","text":"string (comment body)"}
Returns
{"commented":"bool"}
SKILL.md25 lines

Intent

Post a comment with the given text on a third-party LinkedIn post (by URN), from the logged-in account.

Preconditions

  • Logged-in session in the browser you drive (LinkedIn session (logged-in cookie) for www.linkedin.com).
  • If not logged in: navigate to https://linkedin.com and let the user log in, then retry.

Execute

Drive the rendered page with your browser (selectors are CSS; {{var}} = a param):

  1. navigate → https://www.linkedin.com/feed/update/{{urn}}/
  2. wait for .ql-editor[contenteditable="true"]
  3. type {{text}} into .ql-editor[contenteditable="true"]
  4. click button[class*="comments-comment-box__submit-button"]

Step 4 is the commit: it performs the write-irreversible action.

Success assertion

{
  "expr": "!document.querySelector('button[class*=\"comments-comment-box__submit-button\"]')",
  "type": "dom",
  "within_ms": 8000
}