Post my event to my TikTok
event_tiktok_postPosts the host's event to the host's OWN TikTok account: the event's photo card, the same post the Sonar Connections dashboard's Post to TikTok panel makes, through the same server door. Only a host or organizer of the event can post, and only to the TikTok account they connected themselves. eventId names the event. mode is post (published now) or draft (sent to the host's TikTok inbox to finish there). For a post, privacyLevel is REQUIRED and has no default: it is one of the options TikTok offers this account; call without it and the reply lists them (privacyLevelOptions), then ask the host who can view the post and call again with their pick. While Sonar Connections is in TikTok's review, TikTok accepts private posts only (SELF_ONLY, only the host can view); say so if the host asks for a wider audience. caption is optional (up to 4000 characters, no links, times or street address); without it the event name is the caption. allowComments is off unless the host asks for comments. disclose is off unless the host says the post promotes their own brand (yourBrand) or is paid or branded content (brandedContent); branded content cannot be private. Repeat the host's choices back and get a clear yes first: the call posts. Not connected: the reply carries a one-tap connect link (url) with a message; give both exactly and tell them not to forward it. The reply's state is posted, saved, processing or failed, with a line to read out; refusals (NOT_SIGNED_IN, not_enabled, forbidden, privacy_mismatch, branded_private, bad_title) are read out as given. It requires a personal connector token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eventId": "<eventId>",
"mode": "<mode>"
},
"name": "event_tiktok_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | post publishes now; draft sends it to the host's TikTok inbox to finish there. | |
| caption | No | Optional: the caption, in the host's words. | |
| eventId | Yes | The event's id. | |
| disclose | No | Optional: {yourBrand, brandedContent}, each true only when the host says so. Default off. | |
| privacyLevel | No | Who can view a post: one of the privacyLevelOptions TikTok offers this account. Required for a post; the host picks it. | |
| allowComments | No | Optional: true only when the host wants comments. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| url | No | ||
| code | No | ||
| line | No | ||
| mode | No | ||
| error | No | ||
| state | No | ||
| detail | No | ||
| message | No | ||
| nickname | No | ||
| servedBy | No | ||
| expiresInSeconds | No | ||
| privacyLevelOptions | No |