Agent skill
tavily-search-free
Web search, online search, real-time search, internet search, Google alternative, Bing alternative, DuckDuckGo alternative, search the web, lookup online, find information, research,查询,搜索,搜索结果,网页搜索,联网搜索,实时搜索,网络查询,资料查找,信息检索,最新资讯,新闻搜索, Tavily Search API for optimized, real-time web search results for RAG. A pre-configured, cost-effective search tool.
Install this agent skill to your Project
npx add-skill https://github.com/Dwsy/agent/tree/main/skills/tavily-search-free
SKILL.md
Tavily Search Skill
This skill utilizes the Tavily Search API, providing clean, real-time web search results optimized for LLMs and RAG pipelines.
执行环境
| 路径类型 | 路径 | 基准目录 |
|---|---|---|
| 技能目录 | ~/.pi/agent/skills/tavily-search-free/ |
固定位置 |
| 主脚本 | ~/.pi/agent/skills/tavily-search-free/scripts/tavily_search.py |
技能目录 |
| 使用方式 | pi 自动调用或手动执行 |
无需手动执行 |
安装
cd ~/.pi/agent/skills/tavily-search-free
pip install tavily-python python-dotenv
API Key 配置
需要 TAVILY_API_KEY。密钥已在 .env 中预配置。
使用方式
方式 1:通过 pi 自动调用(推荐)
pi 会自动调用此技能进行网络搜索,无需手动执行命令。
方式 2:手动执行
# 从技能目录执行
cd ~/.pi/agent/skills/tavily-search-free
python3 scripts/tavily_search.py --query "<query>" [--max-results <N>] [--search-depth <basic|advanced>]
# 或使用完整路径
cd /path/to/your/project
python3 ~/.pi/agent/skily-search-free/scripts/tavily_search.py --query "<query>"
参数说明
| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
--query |
是 | - | 搜索查询内容 |
--search-depth |
否 | basic | 搜索深度:basic 或 advanced(更高质量但更慢) |
--max-results |
否 | 10 | 最大返回结果数量 |
示例
# 基本搜索
python3 ~/.pi/agent/skilly-search-free/scripts/tavily_search.py --query "latest AI trends"
# 深度搜索(高级)
python3 ~/.pi/agent/skilly-search-free/scripts/tavily_search.py --query "autonomous research agents comparison" --search-depth advanced
输出格式
脚本输出 JSON 格式,包含 results 数组,每个结果包含:
url: 结果链接title: 标题content: 内容摘要
路径说明
- 脚本位置:
~/.pi/agent/skills/tavily-search-free/scripts/tavily_search.py - 配置位置:
~/.pi/agent/skills/tavily-search-free/.env - 依赖安装:需在技能目录中执行
pip install - 项目上下文:搜索结果基于查询内容,与本地项目无关
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
undo-redo
Use the undo_redo tool to rewind or reapply buffered file changes or inspect diffs without UI navigation. Use when you need to adjust or verify changes in the current session history.
exa
使用 Exa.ai API 进行高质量的互联网搜索。需要 EXA_API_KEY 环境变量。
backend-unit-test
后端单元测试技能。触发场景: - 用户要求运行/创建单元测试 - 用户要求验证数据 - 用户要求用 Maven 运行测试 - 关键词:test, maven test, junit, springboot test, 单元测试, 测试验证 核心:不改 pom,用 reactor 模式运行。
mermaid-flow-image
将流程需求整理为可渲染的 Mermaid(简化版/详细版),并通过 Kroki 生成可发送的高分辨率 PNG 图片。适用于“把架构流程画出来并直接发图”的场景。
web-browser
Allows to interact with web pages by performing actions such as clicking buttons, filling out forms, and navigating links. It works by remote controlling Google Chrome or Chromium browsers using the Chrome DevTools Protocol (CDP). When Claude needs to browse the web, it can use this skill to do so.
ralph-loop-gen
任务管理系统模板生成器 - 根据用户输入或JSON配置生成完整的任务管理结构(模板生成器,非直接执行器)
Didn't find tool you were looking for?