post_to_tiktok
Post a video or photo post to TikTok destructive
Description
Use this when the user wants to post a video or photo post to TikTok now. Publishing costs no credits. Publish to the user’s connected TikTok account — a finished VIDEO, or a PHOTO POST (TikTok’s photo/slideshow format). A photo post carries 1 to 35 images and ONE image is simply a one-slide photo post, so there is nothing special to do for a single picture: pass imageUrls, in the order the slides should appear, and optionally coverIndex. Pass videoUrl for a video. Never pass both — TikTok has no mixed post. TWO destinations. destination:"post" (THE DEFAULT) publishes it LIVE on their profile: TikTok requires the user to CHOOSE the privacy themselves (no default is allowed), so call tiktok_creator_info, show them their real privacy options, and get their choice and an explicit yes before calling. destination:"draft" is ONLY for when the user asks for a draft, or wants to add a TikTok sound or trending audio (TikTok’s API takes no sound for a VIDEO): BEFORE sending, tell them plainly it lands in their TikTok inbox as a DRAFT, that they add the sound in TikTok’s editor, and that THEY must publish it from the TikTok app — nothing goes live until they do. Never pick draft on your own. A photo post published with destination:"post" gets a TikTok-recommended track automatically (autoAddMusic, default on) that they can change in the app. Pass Hermoso render URLs (or upload_file urls for local/external files). Needs TikTok connected (Connectors > TikTok).
Parameters
| Parameter | Type | Description |
|---|---|---|
account | string | WHICH connected account of this channel to post as — its @handle or id from list_connector_accounts. Needed only when the profile has more than one tiktok account connected (several and none named is refused by name, never guessed); omit when there is one. |
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 |
videoUrl | string | the video to post — a Hermoso render URL or an upload_file url. Omit for a photo post; a URL, not a local file path; use upload_file for local files |
imageUrls | string[] | a PHOTO POST: 1–35 image URLs in slide order. One url = a single-image photo post. Do not combine with videoUrl. |
coverIndex | number | photo posts: which slide is the cover, 0-based. Default 0 (the first slide). |
destination | "post" | "draft" | "post" (default) = live on the profile now (needs the privacy the user chose + their explicit yes); "draft" = to their TikTok inbox for them to finish and publish in the app — only when they ask for a draft or want to add a TikTok sound, and only after telling them so. |
title | string | the caption — hashtags go here (video ≤2200 chars, photo post ≤4000) |
photoTitle | string | photo posts only: a short title above the caption (≤90 chars). Defaults to the caption’s first line. |
privacy | "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY" | REQUIRED for destination:"post", for photos and video alike. Must be one the creator actually allows — read them from tiktok_creator_info, never guess. |
disableComment | boolean | true = turn comments off on this post |
disableDuet | boolean | video only — TikTok has no duet on a photo post |
disableStitch | boolean | video only — TikTok has no stitch on a photo post |
autoAddMusic | boolean | photo posts only: let TikTok add a recommended track (default true — a silent slideshow reads as broken) |
coverTimestampMs | number | video only: which frame to use as the cover, in ms |
aiGenerated | boolean | TikTok’s is_aigc AI-generated-content label (video posts). OMIT IT and Hermoso decides from provenance: a Hermoso render is declared, a video that came through upload_file or an external URL (the user’s own footage) is NOT. true/false overrides. |
brandedContent | boolean | discloses a paid partnership — cannot be combined with SELF_ONLY privacy |
yourBrand | boolean | discloses that this promotes the creator’s own brand |
platformCover | boolean | VIDEO COVER. Omit it (the default) and Hermoso sets the video’s best frame — the same frame as its Library thumbnail — as the cover (TikTok video_cover_timestamp_ms, on a direct post — a draft takes no cover, you pick it in the TikTok app). true = send no cover and let the platform pick (usually the first frame). A cover you pass yourself always wins. |
locationId | string | TAG A PLACE on the post: the locationId search_tiktok_locations returns. Needs locationName too. Setting this, musicSoundId or adsOnly publishes through TikTok’s Business endpoint (the TikTok account authorized under Connectors > TikTok Ads, which must be the account this brand posts as): public only for a video, at most 15 such posts a day per account, direct posts only (not drafts). |
locationName | string | the place name exactly as search_tiktok_locations listed it; TikTok requires it with locationId |
musicSoundId | string | a COMMERCIAL MUSIC LIBRARY track under the post (pre-cleared for brand and ad use): a songClipId from tiktok_ads_trending kind "sounds". Video or photo post. |
musicVolume | integer | VIDEO: how loud that track plays, 0-100. Default 50, as in the TikTok app (TikTok’s API default is 0, which attaches a track nobody hears). |
musicStartMs | integer | VIDEO: where in the track to start, in milliseconds (default 0) |
musicEndMs | integer | VIDEO: where in the track to stop, in milliseconds (default: the video’s length) |
originalSoundVolume | integer | VIDEO with musicSoundId: how loud the video’s OWN sound (voiceover, dialogue) plays under the track, 0-100. Default 50, as in the TikTok app; 0 mutes it. TikTok has this only together with a Commercial Music Library track. |
adsOnly | boolean | VIDEO: publish as an "Only show in ads" post. It stays off the profile and exists to be run as a Spark Ad (authorize it with the TikTok Ads tools). Anyone with the link can still open it. |
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_tiktok.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_to_tiktok","arguments":{}}}
CLI
hermoso call post_to_tiktok --json '{}'
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
tiktok_creator_infoRead the connected TikTok creator’s posting optionsupload_fileUpload a local file -> durable public URLtiktok_post_statusCheck whether a TikTok post finished publishingreact_to_bluesky_dmReact to a Bluesky direct messagetiktok_accountRead the connected TikTok accountmanage_bluesky_convoAccept, mute, lock, leave or prune a Bluesky DM conversationlist_tiktok_videosList the connected account’s TikTok postsmark_bluesky_convo_readMark Bluesky conversations as readupload_meta_assetUpload an asset to a Meta ad accountsend_bluesky_dmSend a Bluesky direct message