tiktok-automation
通过Rube MCP(Composio)自动化TikTok任务:上传/发布视频、发布照片、管理内容以及查看用户个人资料/统计数据。务必先搜索工具以获取最新架构信息。
TikTok Automation via Rube MCP
Automate TikTok content creation and profile operations through Composio's TikTok toolkit via Rube MCP.
Prerequisites
RUBE_MANAGE_CONNECTIONS with toolkit tiktokRUBE_SEARCH_TOOLS first to get current tool schemasSetup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit tiktokCore Workflows
1. Upload and Publish a Video
When to use: User wants to upload a video and publish it to TikTok
Tool sequence:
TIKTOK_UPLOAD_VIDEO or TIKTOK_UPLOAD_VIDEOS - Upload video file(s) [Required]TIKTOK_FETCH_PUBLISH_STATUS - Check upload/processing status [Required]TIKTOK_PUBLISH_VIDEO - Publish the uploaded video [Required]Key parameters for upload:
video: Video file object with s3key, mimetype, nametitle: Video title/captionKey parameters for publish:
publish_id: ID returned from upload steptitle: Video caption textprivacy_level: 'PUBLIC_TO_EVERYONE', 'MUTUAL_FOLLOW_FRIENDS', 'FOLLOWER_OF_CREATOR', 'SELF_ONLY'disable_duet: Disable duet featuredisable_stitch: Disable stitch featuredisable_comment: Disable commentsPitfalls:
2. Post a Photo
When to use: User wants to post a photo to TikTok
Tool sequence:
TIKTOK_POST_PHOTO - Upload and post a photo [Required]TIKTOK_FETCH_PUBLISH_STATUS - Check processing status [Optional]Key parameters:
photo: Photo file object with s3key, mimetype, nametitle: Photo caption textprivacy_level: Privacy setting for the postPitfalls:
3. List and Manage Videos
When to use: User wants to view their published videos
Tool sequence:
TIKTOK_LIST_VIDEOS - List user's published videos [Required]Key parameters:
max_count: Number of videos to return per pagecursor: Pagination cursor for next pagePitfalls:
has_more and cursor in response4. View User Profile and Stats
When to use: User wants to check their TikTok profile info or account statistics
Tool sequence:
TIKTOK_GET_USER_PROFILE - Get full profile information [Required]TIKTOK_GET_USER_STATS - Get account statistics [Optional]TIKTOK_GET_USER_BASIC_INFO - Get basic user info [Alternative]Key parameters: (no required parameters; returns data for authenticated user)
Pitfalls:
GET_USER_PROFILE returns more details than GET_USER_BASIC_INFO5. Check Publish Status
When to use: User wants to check the status of a content upload or publish operation
Tool sequence:
TIKTOK_FETCH_PUBLISH_STATUS - Poll for status updates [Required]Key parameters:
publish_id: The publish ID from a previous upload/publish operationPitfalls:
Common Patterns
Video Publish Flow
1. Upload video via TIKTOK_UPLOAD_VIDEO -> get publish_id
Poll TIKTOK_FETCH_PUBLISH_STATUS with publish_id until complete
If status is ready, call TIKTOK_PUBLISH_VIDEO with final settings
Optionally poll status again to confirm publication Pagination
cursor from previous response for next pagehas_more boolean to determine if more results existmax_count controls page sizeKnown Pitfalls
Content Requirements:
Authentication:
Rate Limits:
Response Parsing:
data or data.dataQuick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| Upload video | TIKTOK_UPLOAD_VIDEO | video, title |
| Upload multiple videos | TIKTOK_UPLOAD_VIDEOS | videos |
| Publish video | TIKTOK_PUBLISH_VIDEO | publish_id, title, privacy_level |
| Post photo | TIKTOK_POST_PHOTO | photo, title, privacy_level |
| List videos | TIKTOK_LIST_VIDEOS | max_count, cursor |
| Get profile | TIKTOK_GET_USER_PROFILE | (none) |
| Get user stats | TIKTOK_GET_USER_STATS | (none) |
| Get basic info | TIKTOK_GET_USER_BASIC_INFO | (none) |
| Check publish status | TIKTOK_FETCH_PUBLISH_STATUS | publish_id |