post_to_linkedin
Publish to LinkedIn destructive
Description
Use this when the user wants to post to their personal LinkedIn profile. Publishing costs no credits. Publish a post to the user’s connected LinkedIn profile — text, and optionally an image (imageUrl), a VIDEO (videoUrl, with captionsSrt and a videoThumbnailUrl cover), a 2–20 image MULTI-IMAGE post (imageUrls), a LINK post with a real preview card (linkUrl + linkTitle / linkDescription / linkThumbnailUrl — LinkedIn never scrapes the page), a DOCUMENT post (documentUrl: a PDF / PPTX readers swipe through), and @mentions of companies (mentions). The image does NOT have to be something Hermoso generated: LinkedIn is served the bytes from us, so the URL must be Hermoso-hosted, and upload_file turns ANY file the user already has into exactly that. This PUBLISHES immediately and PUBLICLY — ALWAYS show the user the exact text and get an explicit yes BEFORE calling. Needs a connected LinkedIn account (Connectors > LinkedIn).
Parameters
| Parameter | Type | Description |
|---|---|---|
brand | string | WHICH PROFILE this post belongs to, for THIS CALL ONLY (beats the connection’s pin): an id or exact name from list_brands. A name that matches no profile, or two, is REFUSED and nothing is posted. |
hook | string | the post’s ANGLE, recorded at publish: a list_hooks id (e.g. "direct_callout") or your own wording reused EXACTLY across a campaign. post_performance ranks hooks on it (a winner needs 5 posts sharing one); omitted, this post never votes. |
subject | string | what the post is about (product, feature, offer or theme): post_performance’s second axis, so reuse the exact wording. |
recipe | string | the post's FORMAT id, e.g. "slideshow" or "imessage_chat" — post_performance groups by it, so reuse one id per format |
ideaId | string | short id of the content-plan idea this post came from |
textrequired | string | the post text |
imageUrl | string | a Hermoso-hosted image URL to attach (≤12MB) — a Hermoso render, or ANY file of the user’s own put through upload_file first. An arbitrary external host is refused (we fetch the bytes ourselves); a URL, not a local file path; use upload_file for local files |
imageUrls | string[] | a MULTI-IMAGE post: 2–20 Hermoso-hosted images in order, one post the reader swipes through (LinkedIn’s MultiImage API takes a member author on w_member_social). Images only. |
videoUrl | string | a Hermoso-hosted video (a render, or the user’s footage via upload_file). LinkedIn processes it before publishing, which takes a minute; a URL, not a local file path; use upload_file for local files |
captionsSrt | string | SRT caption CONTENT for a videoUrl post (English only, attached during upload) |
videoThumbnailUrl | string | cover image for a videoUrl post (Hermoso-hosted) |
title | string | video title |
altText | string | string[] | image alt text — a string for every image, or an array per slide |
linkUrl | string | a LINK post with a real preview card. Not with media. |
linkTitle | string | the card headline — LinkedIn never scrapes the page, so without it the card is unlabelled |
linkDescription | string | link card description; LinkedIn does not read the page, so set it here |
linkThumbnailUrl | string | Hermoso-hosted image for the card |
documentUrl | string | a DOCUMENT post — a Hermoso-hosted PDF / PPTX / DOCX (upload_file first) that readers swipe through page by page in the feed; LinkedIn takes up to 100MB and 300 pages. One kind of media per post: not with an image, video, slides or linkUrl. |
documentTitle | string | the title shown on the document (defaults to the file name) |
poll | object | a POLL as the post (question ≤140, 2-4 options ≤30); no media |
poll.questionrequired | string | |
poll.optionsrequired | string[] | |
poll.duration | "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS" | |
reshareOf | string | REPOST this post (link or urn); text optional, no media. Link cards come only from linkUrl |
mentions | object[] | TAG COMPANIES: write "@Name" in the text where each tag goes and list each company here — its vanity name (the part after linkedin.com/company/), its company page URL, or {organizationId, name}. Hermoso resolves it on LinkedIn and LinkedIn renders a real clickable mention; a company with no "@" spot in the text is refused rather than appended. |
idempotencyKey | string | SAFE RETRIES — any stable string: the SAME publish again within 24h returns the ORIGINAL post id instead of posting again (an identical publish is also recognised for 10 minutes). On a timeout or an ambiguous error, CALL AGAIN WITH THE SAME KEY: it reports the original post or publishes it once, never twice. |
allowDuplicate | boolean | post it even though an identical post was just made or attempted: only when the user wants the same thing posted twice, or you have LOOKED at the account and confirmed a timed-out attempt did not land. |
visibility | "PUBLIC" | "CONNECTIONS" | default PUBLIC |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/post_to_linkedin.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_to_linkedin","arguments":{"text":"<string>"}}}
CLI
hermoso call post_to_linkedin --json '{"text":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
upload_fileUpload a local file -> durable public URLimport_posts_csvSchedule posts from a CSVmanage_evergreenEvergreen seriesmake_evergreenRepost on a repeat (evergreen)manage_post_queuesPosting queuesset_post_approvalApproval before publishingreject_postReject a scheduled postapprove_postApprove a scheduled postlist_pending_approvalsPosts waiting for approval