๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ ClawHub

Tavily Search Skill

by @jayegt002

Web search via Tavily API (alternative to Brave). Use when the user asks to search the web / look up sources / find links and Brave web_search is unavailable...

Versionv1.0.7
Downloads6,049
Starsโญ 1
TERMINAL
clawhub install tavily-search-skill

๐Ÿ“– About This Skill


name: tavily-search-skill description: Web search via Tavily API (alternative to Brave). Use when the user asks to search the web / look up sources / find links and Brave web_search is unavailable or undesired. metadata: openclaw: homepage: https://github.com/JayeGT002/Tavily-Search-Skill

Tavily Search Skill

OpenClaw Skill for performing high quality web searches using the Tavily API.

Directory Structure

tavily-search-skill/
โ”œโ”€โ”€ SKILL.md                    โ† must stay at root
โ”œโ”€โ”€ search.sh                   โ† must stay at root (entry script)
โ”œโ”€โ”€ apikey                      โ† API Key file (user creates this)
โ”œโ”€โ”€ _meta.json
โ””โ”€โ”€ blocklist/
    โ”œโ”€โ”€ blocklist.json         โ† blacklist config
    โ””โ”€โ”€ filter_blocklist.py     โ† filter script

Agent Workflow

When instructed to install this skill, follow these steps in order:

Step 1: Install the skill

git clone https://github.com/JayeGT002/Tavily-Search-Skill.git tavily-search-skill
cd tavily-search-skill

Step 2: Request API Key from user

Ask the user: "่ฏทๆไพ›ไฝ ็š„ Tavily API Key๏ผŒ็”จไบŽ้…็ฝฎๆœ็ดขๅŠŸ่ƒฝใ€‚่Žทๅ–ๅœฐๅ€๏ผšhttps://app.tavily.com/api-keys"

Wait for the user's API Key reply before proceeding.

Step 3: Create apikey file

echo "USER_PROVIDED_API_KEY" > apikey
chmod 600 apikey

Step 4: Verify installation

./search.sh "test"

A successful response contains search results and quota info.


Blacklist Management

The blacklist filters out low quality or untrusted sources from search results.

View current blacklist

cat blocklist/blocklist.json

Add a domain to blacklist

When the user says "block [domain]", update blocklist/blocklist.json:

Root domains automatically match all subdomains. Example: adding csdn.net also blocks blog.csdn.net, download.csdn.net, etc.

Filter feedback

When results are filtered, a message is written to stderr (not visible in normal output). Check stderr if you suspect filtering is silently removing results.


Usage

Basic Search

./search.sh "search query"

Specify Result Count

./search.sh "query" 10

Include Images

./search.sh "query" 5 true

Dependencies

  • curl
  • jq
  • Install if missing:

  • Ubuntu/Debian: sudo apt-get install curl jq
  • macOS: brew install curl jq
  • Alpine: apk add curl jq
  • ๐Ÿ’ก Examples

    Basic Search

    ./search.sh "search query"
    

    Specify Result Count

    ./search.sh "query" 10
    

    Include Images

    ./search.sh "query" 5 true