Create comment draft
create_comment_draftDraft a LinkedIn comment on someone else's post, or a reply to a comment on it. The draft is unpublished: nothing reaches LinkedIn until commit_comment_draft, so write the text here, show it to the user, and only commit once they agree. Get the post_urn (and the comment to reply to) from find_posts_to_comment or find_comments_to_reply. One comment per account per post, and one reply per comment: if this account already commented on the post (or already replied to that comment), queued or posted, the draft is refused with comment_commit_blocked and code COMMENT_ALREADY_POSTED. Do not retry: tell the user they already commented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The comment text. 1 to 1250 characters. | |
| post_urn | Yes | The urn of the LinkedIn post to comment on, from find_posts_to_comment or find_comments_to_reply. | |
| comment_id | No | Pass this to draft a REPLY to an existing comment, using the comment_urn from find_comments_to_reply. Omit to comment on the post itself. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| status | Yes | ||
| content | Yes | ||
| post_urn | Yes | ||
| comment_id | No | ||
| created_at | Yes | ||
| updated_at | Yes |