tiktok-search

Professional TikTok keyword search and data extraction tool. Automates browsing and scraping via Chrome extension.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tiktok-search" with this command: npx skills add gecho-ai/tiktok-search

TikTok Search 🚀

A specialized tool for searching and extracting video metadata from TikTok. It bridges your local Chrome browser via an extension to perform automated searches, scrolling, and data collection.

Tools

tiktok_search

Executes a keyword search, auto-scrolls to load results, and returns metadata.

Parameters:

  • query (string, required): The search keyword or phrase (e.g., "cooking tips", "travel vlogs").
  • save_dir (string, optional): Absolute path to save the results JSON. Best Practice: Always proactively generate a safe, timestamped absolute path in the current workspace (e.g., /absolute/path/to/workspace/tiktok_travel_vlogs_1690000000.json) so the user doesn't lose the raw data.

Returns:

A JSON array containing video IDs, titles, like counts, play URLs, and author info.

tiktok_insight

Performs business insight and trend analysis based on TikTok search results.

Parameters:

  • query (string, required): The search keyword or phrase (e.g., "outdoor picnic mat").
  • save_dir (string, optional): Absolute path to save the results JSON.

Returns:

A JSON array with analyzed insights and trends based on the search query.

Prerequisites Check & Environment Setup

Before calling, ensure the following prerequisites are met:

  1. Node.js: Installed in the local environment.
  2. Gecho TikTok Extension & Active Tab: The USER must have Chrome open locally with the extension active and a TikTok tab open.

⚠️ CRITICAL AGENT INSTRUCTION: You (the Agent) MUST NOT attempt to install Chrome, open browsers, or use tools like browser_navigate to fulfill these prerequisites. Do NOT check for Chrome yourself. Your ONLY responsibility is to call the MCP tool.

Execution Rules & Constraints (CRITICAL)

You MUST strictly adhere to the following rules when calling the MCP tools:

  1. Single Tool Call Limit: You MUST NOT execute more than ONE tool call (tiktok_search OR tiktok_insight) per conversational turn. You MUST wait for the user's feedback before initiating another search or insight request.
  2. Strict Tool Binding (No Fallbacks): You MUST ONLY use the EXACT tools specified (tiktok_search or tiktok_insight) for TikTok searches. You are STRICTLY FORBIDDEN from falling back between these tools. For example, if the user asks for an insight (tiktok_insight) and it fails or times out, you MUST NOT try to call tiktok_search as a backup. Stop immediately and report the failure. You are also forbidden from using built-in browser tools, generic WebSearch, or writing Python scrapers to visit TikTok.com.
  3. Fail Fast & Explicit Reporting: If the MCP tool fails, times out, or throws an error (e.g., params is not defined), you MUST STOP immediately. Do NOT offer alternative web search solutions. You MUST output the raw error message to the user.
  4. No Parallel Execution: Since this tool controls an active Chrome tab, it is strictly single-threaded. You MUST NEVER execute multiple tiktok_search tool calls in parallel simultaneously. You must wait for one search to completely finish before starting another.
  5. Anti-Hallucination (No Fake Data): You MUST base your final response ONLY on the exact data returned by the tool. If the tool returns empty results ([]), you MUST NOT hallucinate or guess. Inform the user exactly what the tool returned.
  6. Anti-Spam (No Infinite Loops): NEVER call the tool repeatedly with the exact same query if it fails or returns empty results.
  7. No Retries (STRICT): If a call fails due to a timeout (MCP error -32001), network error, or any other reason, you MUST STOP immediately and return the error to the user. DO NOT attempt to call the tool again in the same turn or subsequent turns unless the user explicitly requests it.
  8. Timeout Awareness: The tiktok_insight tool can take up to 5 minutes to complete. If you receive a timeout error, inform the user that the operation was too complex or that they should check their browser for a CAPTCHA.
  9. Output Summarization (Avoid Chat Spam): If the tool returns a large number of results (e.g., 200 videos), DO NOT print the entire raw JSON array in your chat response. You must summarize the top 3-5 results, and utilize the save_dir parameter to save the full dataset to the user's disk.

Troubleshooting & Error Handling (Decision Tree)

If the tiktok_search tool execution fails, follow this decision tree to assist the user:

  1. Error: "MCP error -32001: Request timed out"
    • STOP IMMEDIATELY. Do not retry.
    • → Inform the user: "The analysis/search is taking longer than expected. Please check your Chrome browser to see if TikTok is showing a CAPTCHA or if the page is stuck. You can try again after resolving any browser-side issues."
  2. Error: "Chrome extension not found/connected"
    • → Inform the user: "Please ensure the Gecho TikTok Chrome extension is installed, enabled, and you have an active TikTok tab open in Chrome."
  3. Error: "Timeout" (Service Level)
    • → Inform the user: "The service layer timed out. This usually happens if the search volume is extremely high. Try a more specific query."
  4. Error: "Tool not found"
    • → Inform the user: "The tool is not registered. Please ensure the Gecho Bridge Plugin is installed and active."

Example Usage & Standard Operating Procedure (SOP)

When a user requests a TikTok search, follow this exact 4-step workflow:

  1. Determine Path: Proactively generate a valid absolute path for save_dir based on the user's OS and current workspace.
  2. Execute: Call tiktok_search with the query and save_dir.
  3. Process: Wait for the JSON array.
  4. Report: Inform the user where the raw JSON file was saved, and output a concise Markdown summary table (Title, Likes, Author, URL) for the top 3-5 videos only.

Example: "Find trending videos for 'travel vlogs'" → Action: Call tiktok_search with query="travel vlogs" and save_dir="/path/to/workspace/travel_vlogs_results.json"

Limitations

  • Requires an active user session in Chrome.
  • Only works via the MCP tool interface.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Tencent MPS

腾讯云 MPS 媒体处理服务,支持以下功能:【视频转码】转码/压缩/格式转换/H.264/H.265/AV1/MP4/编码/码率/分辨率/帧率。【画质增强】画质增强/老片修复/超分/视频超分/真人增强/漫剧增强/防抖/720P/1080P/2K/4K。【音频处理】音频分离/人声提取/伴奏提取/去人声/BGM分离。...

Registry SourceRecently Updated
General

First Investing Policy Statement

Helps beginners create a personal investing rulebook before they buy anything: goals, risk tolerance, contribution rhythm, rebalancing rules, and panic-preve...

Registry SourceRecently Updated
General

Debt Payoff Strategy Map

Turns scattered debts into a clear payoff strategy comparing snowball, avalanche, consolidation questions, emergency-buffer tradeoffs, and creditor-call scri...

Registry SourceRecently Updated
General

Eisenhower Task Manager

Task management based on Eisenhower Matrix + P0-P2 priority with Customer Project Management. Four quadrants for execution, separate Customer Project List fo...

Registry SourceRecently Updated