Publish Content
publish_contentPublish content to social media platforms.
MEDIA RULES: • mediaUrl must be a public HTTPS URL — NOT a local file path. • If the user shares an image/video in chat, call create_upload_session FIRST to get a browser upload link, then use the returned URL here. • Text-only works on: LinkedIn, Threads, X, Facebook. • Image required: Instagram, Pinterest. • TikTok supports one video or 1-35 Photo Mode images. • Video required: YouTube.
Call validate_content to check before publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| team_id | No | Team ID to publish as team. Get available teams with list_teams. If omitted, publishes from personal accounts. | |
| platforms | Yes | Target platforms. Choose based on content type: text-only→LinkedIn/Threads/X, image→Instagram/Threads/Facebook/Pinterest/TikTok Photo Mode, video→Instagram/TikTok/Threads/YouTube |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isError | No | ||
| results | No | ||
| success | No | ||
| errorMessage | No | ||
| totalPlatforms | No | ||
| followUpSuggestions | No | ||
| successfulPlatforms | No |