A practical Tavily search skill for OpenClaw, optimized for better ranking, cleaner output, and safer day-to-day use.
这是一个面向 OpenClaw 的实用 Tavily 搜索技能,重点优化了排序质量、输出可读性,以及日常长期使用时的稳定性与安全性。
Primary credential / 主要凭据
TAVILY_API_KEYAlso supported / 其他支持方式
--api-key.secrets/tavily.keyNotes / 说明
TAVILY_API_KEY.skills/xiaogua-tavily-search/.secrets/tavily.key is intended for local private setups only, and this published script does not search parent directories for secrets.TAVILY_API_KEY。.secrets/tavily.key 仅建议用于本地私有环境。Compared with simpler public Tavily skills, this version adds:
相比更基础的公共 Tavily skill,这个版本额外做了这些增强:
TAVILY_API_KEY is the primary documented credential, while --api-key and .secrets/tavily.key remain supported as secondary paths.TAVILY_API_KEY 作为主推荐凭据,--api-key 和 .secrets/tavily.key 作为补充方式,避免用户混淆。/releases、/docs、/issues、/discussions 等 URL 路径质量。TAVILY_API_KEY in your environment (recommended).--api-key or a local .secrets/tavily.key file for private setups.python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
--json if you want raw structured output.TAVILY_API_KEY。--api-key 或本地 .secrets/tavily.key。python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
--json。Use this skill when:
在这些场景下推荐使用本技能:
web_search is rate-limited or temporarily unavailableweb_search 被限流或暂时不可用By default, the script behaves like a careful human researcher:
默认情况下,脚本会尽量模拟“认真做检索的人”的行为:
Disable defaults when needed:
如有需要,也可以关闭默认优化:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "query" --no-official-first --no-exclude-noisy-default
Basic search / 基础搜索:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes"
Search with Tavily answer / 带 Tavily 综合回答:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes" --include-answer
Raw JSON / 原始 JSON 输出:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes" --json
Troubleshooting query / 排障查询:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "WSL localhost proxy NAT not supported fix" --include-answer
News-style query / 新闻查询:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "AI infrastructure funding" --topic news --days 7 --include-answer
.secrets files after installation..secrets 文件中放置密钥。tavily_search.py: Tavily search wrapper with source cleanup, intent detection, path scoring, deduplication, and result labeling.tavily_search.py:带来源清洗、意图识别、路径级排序、去重与结果标签能力的 Tavily 搜索脚本。去重与结果标签能力的 Tavily 搜索脚本。
共 1 个版本