hermosodocs

post_to_linkedin

Publish to LinkedIn destructive

Area: SCHEDULER DEPTH · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
brandstringWHICH 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.
hookstringthe 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.
subjectstringwhat the post is about (product, feature, offer or theme): post_performance’s second axis, so reuse the exact wording.
recipestringthe post's FORMAT id, e.g. "slideshow" or "imessage_chat" — post_performance groups by it, so reuse one id per format
ideaIdstringshort id of the content-plan idea this post came from
textrequiredstringthe post text
imageUrlstringa 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
imageUrlsstring[]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.
videoUrlstringa 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
captionsSrtstringSRT caption CONTENT for a videoUrl post (English only, attached during upload)
videoThumbnailUrlstringcover image for a videoUrl post (Hermoso-hosted)
titlestringvideo title
altTextstring | string[]image alt text — a string for every image, or an array per slide
linkUrlstringa LINK post with a real preview card. Not with media.
linkTitlestringthe card headline — LinkedIn never scrapes the page, so without it the card is unlabelled
linkDescriptionstringlink card description; LinkedIn does not read the page, so set it here
linkThumbnailUrlstringHermoso-hosted image for the card
documentUrlstringa 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.
documentTitlestringthe title shown on the document (defaults to the file name)
pollobjecta POLL as the post (question ≤140, 2-4 options ≤30); no media
poll.questionrequiredstring
poll.optionsrequiredstring[]
poll.duration"ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS"
reshareOfstringREPOST this post (link or urn); text optional, no media. Link cards come only from linkUrl
mentionsobject[]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.
idempotencyKeystringSAFE 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.
allowDuplicatebooleanpost 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.

All 728 Publishing & scheduling tools · tools.json