用途
web-search 用于通过网络搜索获取信息并从网页提取内容,全部操作通过 inference.sh CLI(简称 belt)完成。它同时集成 Tavily 和 Exa 两套搜索服务,因此既能做带答案的搜索,也能做链接检索与网页正文提取。
安装与登录
安装 belt CLI 技能的命令为:
npx skills add belt-sh/cli
使用前需要先登录:
belt login
主要能力
该技能提供以下应用(app),每个应用有对应的 App ID:
Tavily:
- Search Assistant(tavily/search-assistant):AI 驱动的搜索与答案
- Extract(tavily/extract):从 URL 提取内容
Exa:
- Search(exa/search):AI 智能网络搜索
- Answer(exa/answer):直接的事实性答案
- Extract(exa/extract):提取并分析网页内容
使用方式
所有应用通过 belt app run 加应用 ID 并传入 JSON 输入来调用。
Tavily 搜索示例:
belt app run tavily/search-assistant --input '{
"query": "What are the best practices for building AI agents?"
}'
返回带来源和图片的 AI 生成答案。
Tavily 提取示例:
belt app run tavily/extract --input '{
"urls": ["https://example.com/article1", "https://example.com/article2"]
}'
从多个 URL 提取干净的文本和图片。
Exa 搜索示例:
belt app run exa/search --input '{
"query": "machine learning frameworks comparison"
}'
返回带上下文的高相关链接。
Exa 答案示例:
belt app run exa/answer --input '{
"question": "What is the population of Tokyo?"
}'
返回直接的事实性答案。
Exa 提取示例:
belt app run exa/extract --input '{
"url": "https://example.com/research-paper"
}'
提取并分析网页内容。
组合工作流
搜索 + LLM:
# 1. 搜索信息
belt app run tavily/search-assistant --input '{
"query": "latest developments in quantum computing"
}' > search_results.json
# 2. 用 Claude 分析
belt app run openrouter/claude-sonnet-45 --input '{
"prompt": "Based on this research, summarize the key trends: <search-results>"
}'
提取 + 摘要:
# 1. 从 URL 提取内容
belt app run tavily/extract --input '{
"urls": ["https://example.com/long-article"]
}' > content.json
# 2. 用 LLM 摘要
belt app run openrouter/claude-haiku-45 --input '{
"prompt": "Summarize this article in 3 bullet points: <content>"
}'
适用场景
- 研究:围绕任意主题收集信息
- RAG:检索增强生成
- 事实核查:结合来源验证说法
- 内容聚合:从多个来源收集数据
- 智能体:构建具备研究能力的 AI 智能体
相关技能
# 完整平台技能(所有 apps)
npx skills add inference-sh/skills@infsh-cli
# LLM 模型(与搜索组合用于 RAG)
npx skills add inference-sh/skills@llm-models
# 图像生成
npx skills add inference-sh/skills@ai-image-generation
浏览所有 apps:belt app list
限制
资料未提供该技能的收费、价格、调用配额、速率限制、支持平台或具体输出格式细节,暂未提供。