Create a LinkedIn post
linkedin_create_postPublish a text post to your LinkedIn feed with a mandatory preview step. Preview first, then confirm to post; choose public or connections-only visibility, with no media support.
Instructions
Publishes a text post to the signed-in member’s LinkedIn feed. This is a two-step tool: called without confirm: true it only returns a preview (character count, line count, audience, and a previewToken) and touches nothing on LinkedIn; call it again with the same arguments plus confirm: true to actually publish. Counts against the daily posts cap. visibility defaults to "public" (Anyone); "connections" restricts the post to 1st-degree connections. LIMITATION: mediaUrl is accepted for validation but images and video are NOT supported — this server never performs its own network fetches, so it cannot download remote media, and confirming a call that sets mediaUrl is refused with invalid_input rather than silently publishing text only. Post without media, or attach the image by hand in LinkedIn afterwards. Posts over roughly 1300 characters are collapsed by LinkedIn behind "…see more" (a warning, not an error). Under --dry-run the composer is driven against a local HTML fixture and the final "Post" click is skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| confirm | No | ||
| mediaUrl | No | ||
| visibility | No | ||
| previewToken | No |