TikTok Automation via Rube MCP
Automate TikTok content creation and profile operations through Composio's TikTok toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/tiktok
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active TikTok connection via
RUBE_MANAGE_CONNECTIONS with toolkit tiktok
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
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.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit tiktok
- If connection is not ACTIVE, follow the returned auth link to complete TikTok OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core 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, name
title: Video title/caption
Key parameters for publish:
publish_id: ID returned from upload step
title: Video caption text
privacy_level: 'PUBLIC_TO_EVERYONE', 'MUTUAL_FOLLOW_FRIENDS', 'FOLLOWER_OF_CREATOR', 'SELF_ONLY'
disable_duet: Disable duet feature
disable_stitch: Disable stitch feature
disable_comment: Disable comments
Pitfalls:
- Video upload and publish are TWO separate steps; upload first, then publish
- After upload, poll FETCH_PUBLISH_STATUS until processing is complete before publishing
- Video must meet TikTok requirements: MP4/WebM format, max 10 minutes, max 4GB
- Caption/title has character limits; check current TikTok guidelines
- Privacy level strings are case-sensitive and must match exactly
- Processing may take 30-120 seconds depending on video size
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, name
title: Photo caption text
privacy_level: Privacy setting for the post
Pitfalls:
- Photo posts are a newer TikTok feature; availability may vary by account type
- Supported formats: JPEG, PNG, WebP
- Image size and dimension limits apply; check current TikTok guidelines
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 page
cursor: Pagination cursor for next page
Pitfalls:
- Only returns the authenticated user's own videos
- Response includes video metadata: id, title, create_time, share_url, duration, etc.
- Pagination uses cursor-based approach; check for
has_more and cursor in response
- Recently published videos may not appear immediately in the list
4. 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:
- Profile data is for the authenticated user only; cannot view other users' profiles
- Stats include follower count, following count, video count, likes received
GET_USER_PROFILE returns more details than GET_USER_BASIC_INFO
- Stats may have slight delays; not real-time
5. 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 operation
Pitfalls:
- Status values include processing, success, and failure states
- Poll at reasonable intervals (5-10 seconds) to avoid rate limits
- Failed publishes include error details in the response
- Content moderation may cause delays or rejections after processing
Common Patterns
Video Publish Flow
1. Upload video via TIKTOK_UPLOAD_VIDEO -> get publish_id
2. Poll TIKTOK_FETCH_PUBLISH_STATUS with publish_id until complete
3. If status is ready, call TIKTOK_PUBLISH_VIDEO with final settings
4. Optionally poll status again to confirm publication
Pagination
- Use
cursor from previous response for next page
- Check
has_more boolean to determine if more results exist
max_count controls page size
Known Pitfalls
Content Requirements:
- Videos: MP4/WebM, max 4GB, max 10 minutes
- Photos: JPEG/PNG/WebP
- Captions: Character limits vary by region
- Content must comply with TikTok community guidelines
Authentication:
- OAuth tokens have scopes; ensure video.upload and video.publish are authorized
- Tokens expire; re-authenticate if operations fail with 401
Rate Limits:
- TikTok API has strict rate limits per application
- Implement exponential backoff on 429 responses
- Upload operations have daily limits
Response Parsing:
- Response data may be nested under
data or data.data
- Parse defensively with fallback patterns
- Publish IDs are strings; use exactly as returned
Quick 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 |
Powered by Composio
Source: davepoon/buildwithclaude → plugins/all-skills/skills/tiktok-automation/SKILL.md
1---2name: tiktok-automation3description: "Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas."4---567# TikTok Automation via Rube MCP89Automate TikTok content creation and profile operations through Composio's TikTok toolkit via Rube MCP.1011**Toolkit docs**: [composio.dev/toolkits/tiktok](https://composio.dev/toolkits/tiktok)1213## Prerequisites1415- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)16- Active TikTok connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `tiktok`17- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1819## Setup2021**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.2223241. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds252. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `tiktok`263. If connection is not ACTIVE, follow the returned auth link to complete TikTok OAuth274. Confirm connection status shows ACTIVE before running any workflows2829## Core Workflows3031### 1. Upload and Publish a Video3233**When to use**: User wants to upload a video and publish it to TikTok3435**Tool sequence**:361. `TIKTOK_UPLOAD_VIDEO` or `TIKTOK_UPLOAD_VIDEOS` - Upload video file(s) [Required]372. `TIKTOK_FETCH_PUBLISH_STATUS` - Check upload/processing status [Required]383. `TIKTOK_PUBLISH_VIDEO` - Publish the uploaded video [Required]3940**Key parameters for upload**:41- `video`: Video file object with `s3key`, `mimetype`, `name`42- `title`: Video title/caption4344**Key parameters for publish**:45- `publish_id`: ID returned from upload step46- `title`: Video caption text47- `privacy_level`: 'PUBLIC_TO_EVERYONE', 'MUTUAL_FOLLOW_FRIENDS', 'FOLLOWER_OF_CREATOR', 'SELF_ONLY'48- `disable_duet`: Disable duet feature49- `disable_stitch`: Disable stitch feature50- `disable_comment`: Disable comments5152**Pitfalls**:53- Video upload and publish are TWO separate steps; upload first, then publish54- After upload, poll FETCH_PUBLISH_STATUS until processing is complete before publishing55- Video must meet TikTok requirements: MP4/WebM format, max 10 minutes, max 4GB56- Caption/title has character limits; check current TikTok guidelines57- Privacy level strings are case-sensitive and must match exactly58- Processing may take 30-120 seconds depending on video size5960### 2. Post a Photo6162**When to use**: User wants to post a photo to TikTok6364**Tool sequence**:651. `TIKTOK_POST_PHOTO` - Upload and post a photo [Required]662. `TIKTOK_FETCH_PUBLISH_STATUS` - Check processing status [Optional]6768**Key parameters**:69- `photo`: Photo file object with `s3key`, `mimetype`, `name`70- `title`: Photo caption text71- `privacy_level`: Privacy setting for the post7273**Pitfalls**:74- Photo posts are a newer TikTok feature; availability may vary by account type75- Supported formats: JPEG, PNG, WebP76- Image size and dimension limits apply; check current TikTok guidelines7778### 3. List and Manage Videos7980**When to use**: User wants to view their published videos8182**Tool sequence**:831. `TIKTOK_LIST_VIDEOS` - List user's published videos [Required]8485**Key parameters**:86- `max_count`: Number of videos to return per page87- `cursor`: Pagination cursor for next page8889**Pitfalls**:90- Only returns the authenticated user's own videos91- Response includes video metadata: id, title, create_time, share_url, duration, etc.92- Pagination uses cursor-based approach; check for `has_more` and `cursor` in response93- Recently published videos may not appear immediately in the list9495### 4. View User Profile and Stats9697**When to use**: User wants to check their TikTok profile info or account statistics9899**Tool sequence**:1001. `TIKTOK_GET_USER_PROFILE` - Get full profile information [Required]1012. `TIKTOK_GET_USER_STATS` - Get account statistics [Optional]1023. `TIKTOK_GET_USER_BASIC_INFO` - Get basic user info [Alternative]103104**Key parameters**: (no required parameters; returns data for authenticated user)105106**Pitfalls**:107- Profile data is for the authenticated user only; cannot view other users' profiles108- Stats include follower count, following count, video count, likes received109- `GET_USER_PROFILE` returns more details than `GET_USER_BASIC_INFO`110- Stats may have slight delays; not real-time111112### 5. Check Publish Status113114**When to use**: User wants to check the status of a content upload or publish operation115116**Tool sequence**:1171. `TIKTOK_FETCH_PUBLISH_STATUS` - Poll for status updates [Required]118119**Key parameters**:120- `publish_id`: The publish ID from a previous upload/publish operation121122**Pitfalls**:123- Status values include processing, success, and failure states124- Poll at reasonable intervals (5-10 seconds) to avoid rate limits125- Failed publishes include error details in the response126- Content moderation may cause delays or rejections after processing127128## Common Patterns129130### Video Publish Flow131132```1331. Upload video via TIKTOK_UPLOAD_VIDEO -> get publish_id1342. Poll TIKTOK_FETCH_PUBLISH_STATUS with publish_id until complete1353. If status is ready, call TIKTOK_PUBLISH_VIDEO with final settings1364. Optionally poll status again to confirm publication137```138139### Pagination140141- Use `cursor` from previous response for next page142- Check `has_more` boolean to determine if more results exist143- `max_count` controls page size144145## Known Pitfalls146147**Content Requirements**:148- Videos: MP4/WebM, max 4GB, max 10 minutes149- Photos: JPEG/PNG/WebP150- Captions: Character limits vary by region151- Content must comply with TikTok community guidelines152153**Authentication**:154- OAuth tokens have scopes; ensure video.upload and video.publish are authorized155- Tokens expire; re-authenticate if operations fail with 401156157**Rate Limits**:158- TikTok API has strict rate limits per application159- Implement exponential backoff on 429 responses160- Upload operations have daily limits161162**Response Parsing**:163- Response data may be nested under `data` or `data.data`164- Parse defensively with fallback patterns165- Publish IDs are strings; use exactly as returned166167## Quick Reference168169| Task | Tool Slug | Key Params |170|------|-----------|------------|171| Upload video | TIKTOK_UPLOAD_VIDEO | video, title |172| Upload multiple videos | TIKTOK_UPLOAD_VIDEOS | videos |173| Publish video | TIKTOK_PUBLISH_VIDEO | publish_id, title, privacy_level |174| Post photo | TIKTOK_POST_PHOTO | photo, title, privacy_level |175| List videos | TIKTOK_LIST_VIDEOS | max_count, cursor |176| Get profile | TIKTOK_GET_USER_PROFILE | (none) |177| Get user stats | TIKTOK_GET_USER_STATS | (none) |178| Get basic info | TIKTOK_GET_USER_BASIC_INFO | (none) |179| Check publish status | TIKTOK_FETCH_PUBLISH_STATUS | publish_id |180181---182*Powered by [Composio](https://composio.dev)*183184---185186**Source:** [`davepoon/buildwithclaude`](https://github.com/davepoon/buildwithclaude) → `plugins/all-skills/skills/tiktok-automation/SKILL.md`