comment_on_post
Post a comment on a LinkedIn post, optionally as a company, and get back the comment's URN and URL. Enables engagement and response tracking.
Instructions
Allows you to leave a comment on a post (st.commentOnPost action); returns the comment's URN and URL. If this workflow is still running, do not retry this tool; retrying can post duplicate comments.
Linked API actions are queued into a cloud-browser workflow and may take several minutes. The server returns immediately after starting the workflow with {status: 'pending'|'running', pendingReason, workflowId, operationName, message}. To retrieve the final result, call get_workflow_result with the returned workflowId and operationName — it will long-poll until completion or the request budget elapses, then return either the final result or another in-progress snapshot. Do not retry the original tool while a workflow is still running; that creates duplicate queued work.
A pending workflow carries pendingReason: 'queued' means it is waiting its turn behind other work on the same account and will start within minutes. 'outsideWorkingHours' means the account has configured working hours and the workflow is parked until they reopen — possibly the next working day. In that case get_workflow_result returns immediately instead of polling, message states when the window opens, and you should report that to the user rather than looping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Comment text, must be up to 1000 characters. | |
| postUrl | Yes | The LinkedIn post URL to comment on (e.g., 'https://www.linkedin.com/posts/username_activity-id') | |
| companyUrl | No | LinkedIn company page URL. If specified, the comment will be added on behalf of the company. (e.g., 'https://www.linkedin.com/company/acme-corp') |