← 返回 Skills 市场
🔌

TikTok Search

作者 Gecho AI · GitHub ↗ · v1.1.7 · MIT-0
cross-platform ⚠ suspicious
3
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tiktok-search
功能描述
Professional TikTok keyword search and data extraction tool. Automates browsing and scraping via Chrome extension.
使用说明 (SKILL.md)

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.
安全使用建议
Install this only if you trust Gecho Bridge and its Chrome extension. Prefer a separate Chrome profile or TikTok account, verify the npm package and extension publisher, pin versions where possible, keep saved data inside a known workspace directory, and disable the bridge/extension when you are done.
功能分析
Type: OpenClaw Skill Name: tiktok-search Version: 1.1.7 The tiktok-search skill bundle provides a specialized tool for extracting TikTok metadata via a local Chrome extension and the Model Context Protocol (MCP). The SKILL.md and README.md files contain well-defined operational constraints that prioritize agent reliability, such as anti-hallucination rules, single-threaded execution limits, and explicit error-handling decision trees. While the tool requests the ability to save scraped data to local absolute paths (save_dir), this behavior is strictly aligned with its stated purpose as a data extraction tool and includes instructions for the agent to use safe, workspace-relative paths. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found.
能力标签
crypto
能力评估
Purpose & Capability
The documented capability is coherent with the stated purpose: TikTok keyword search, scrolling, scraping, metadata extraction, insight analysis, and local JSON export.
Instruction Scope
The skill includes several limiting instructions such as one tool call per turn, no retries, no parallel execution, and no fallback scraping; these are mostly scope controls, but the agent is also encouraged to choose a save path and write output locally.
Install Mechanism
Although registry installation says this is instruction-only, the README tells users to install a remote MCP package using an unpinned '@latest' npm reference and a Chrome extension; the runnable browser-control code is not included in the reviewed artifacts.
Credentials
The tool requires a local Chrome extension and a logged-in TikTok browser session, which is high-impact delegated account/browser access and is not reflected as a declared primary credential.
Persistence & Privilege
The skill persists scraped results to disk and describes a local resident service for browser-extension communication; this is purpose-aligned but users should understand that local files and a helper service may remain after use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tiktok-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tiktok-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.7
Initial release of the TikTok Search skill – professional TikTok keyword search and extraction tool. - Supports automated TikTok search and metadata extraction through a Chrome extension and Node.js. - Provides two main tools: `tiktok_search` (video metadata) and `tiktok_insight` (trend/business analysis). - Enforces strict execution rules: one tool call per turn, no retries, no fallbacks, and robust error handling with explicit reporting. - Returns concise summaries in chat; saves full results to a specified local path. - Includes step-by-step usage instructions, error troubleshooting guidelines, and highlights all operational constraints.
元数据
Slug tiktok-search
版本 1.1.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

TikTok Search 是什么?

Professional TikTok keyword search and data extraction tool. Automates browsing and scraping via Chrome extension. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3 次。

如何安装 TikTok Search?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tiktok-search」即可一键安装,无需额外配置。

TikTok Search 是免费的吗?

是的,TikTok Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

TikTok Search 支持哪些平台?

TikTok Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 TikTok Search?

由 Gecho AI(@gecho-ai)开发并维护,当前版本 v1.1.7。

💬 留言讨论