st.reactToComment
This action allows you to react to a comment using any available reaction type.
In the SDK this is the reactToComment method. It takes the parameters below except label and then, which exist only in workflow JSON. It returns no data: a failed action comes back in errors, with one of the error types below.
In the CLI this is linkedin comment react – the command is below, under Parameters.
Constraints
⏺️ Root Start: allowed, when
commentUrlparameter is provided.
⬆️ Parent Actions: st.doForComments, st.openComment.
⬇️ Child Actions: N/A.
Parameters
{
"actionType": "st.reactToComment",
"commentUrl": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789/?dashCommentUrn=urn%3Ali%3Afsd_comment%3A(9876543210%2Curn%3Ali%3Aactivity%3A1234567890123456789)",
"type": "like",
"label": "comment1"
}In AI assistants, the MCP server runs this action as the react_to_comment tool.
In the CLI this is linkedin comment react:
bash
linkedin comment react <commentUrl> --type <reaction>| Arg | Required | Description |
|---|---|---|
commentUrl | yes | Deep-link URL of the comment, from post fetch --comments or a comment reply result |
| Flag | Type | Required | Description |
|---|---|---|---|
--type | string | yes | Reaction type: like, love, support, celebrate, insightful, funny |
commentUrl(required for root start, forbidden for parent start) – LinkedIn URL of the comment.type(optional, default:like) – enum describing the reaction type.like– standard "like".celebrate– to celebrate an achievement.support– to show support.love– to express love or admiration.insightful– to appreciate insightful content.funny– to react to something humorous.
label(optional) – custom label for tracking this action in workflow completion.
Result options
- Successful comment reaction:
json
{
"actionType": "st.reactToComment",
"success": true,
"label": "comment1"
}label– included only if specified in the action parameters.
- Failed comment reaction:
json
{
"actionType": "st.reactToComment",
"success": false,
"label": "comment1",
"error": {
"type": "commentNotFound",
"message": "The comment could not be opened or no longer exists."
}
}label– included only if specified in the action parameters.error.type– enum with the following possible values:commentNotFound– the comment could not be opened or no longer exists.