Agent Skillsdecolua/9router › 9router-web-search

9router-web-search

GitHub

通过9Router统一接口调用Tavily、Brave等搜索引擎进行网页搜索。支持自定义查询参数与结果过滤,返回结构化搜索结果及元数据,适用于信息检索、文章查找等场景。

skills/9router-web-search/SKILL.md decolua/9router

触发场景

用户需要搜索网络信息 用户想要查找特定文章或资料 用户希望查询搜索引擎获取最新数据

安装

npx skills add decolua/9router --skill 9router-web-search -g -y
更多选项

不安装直接使用

npx skills use decolua/9router@9router-web-search

指定 Agent (Claude Code)

npx skills add decolua/9router --skill 9router-web-search -a claude-code -g -y

安装 repo 全部 skill

npx skills add decolua/9router --all -g -y

预览 repo 内 skill

npx skills add decolua/9router --list

SKILL.md

Frontmatter
{
    "name": "9router-web-search",
    "description": "Web search via 9Router \/v1\/search using Tavily \/ Exa \/ Brave \/ Serper \/ SearXNG \/ Google PSE \/ Linkup \/ SearchAPI \/ You.com \/ Perplexity. Use when the user wants to search the web, look up information, find articles, or query a search engine."
}

9Router — Web Search

Requires NINEROUTER_URL (and NINEROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup.

Discover

curl $NINEROUTER_URL/v1/models/web | jq '.data[] | select(.kind=="webSearch") | .id'
# Per-provider params (searchTypes, maxResults, required options like cx for google-pse)
curl "$NINEROUTER_URL/v1/models/info?id=tavily/search"

IDs end in /search (e.g. tavily/search). Combos (owned_by:"combo") chain providers with auto-fallback.

Endpoint

POST $NINEROUTER_URL/v1/search

Field Required Notes
model (or provider) yes from /v1/models/web (e.g. tavily or brave)
query yes search query
max_results no default 5
search_type no web (default) / news
country, language, time_range, domain_filter no provider-dependent

Examples

curl -X POST $NINEROUTER_URL/v1/search \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tavily","query":"9Router open source","max_results":5}'

JS:

const r = await fetch(`${process.env.NINEROUTER_URL}/v1/search`, {
  method: "POST",
  headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ model: "search-combo", query: "latest LLM benchmarks", max_results: 10 }),
});
console.log(await r.json());

Response shape

{
  "provider": "tavily",
  "query": "9Router open source",
  "results": [
    {
      "title": "...", "url": "https://...", "display_url": "github.com/...",
      "snippet": "...", "position": 1, "score": 0.92,
      "published_at": null, "favicon_url": null, "content": null,
      "metadata": { "author": null, "language": null, "source_type": null, "image_url": null },
      "citation": { "provider": "tavily", "retrieved_at": "2026-...", "rank": 1 }
    }
  ],
  "answer": null,
  "usage": { "queries_used": 1, "search_cost_usd": 0.008 },
  "metrics": { "response_time_ms": 850, "upstream_latency_ms": 700, "total_results_available": 12 },
  "errors": []
}

Provider quirks

All accept query + max_results. Optional fields vary:

Provider Supports Required extras
tavily country, domain_filter, news topic
exa domain_filter (incl/excl), news category
brave-search country, language
serper country, language, news endpoint
perplexity country, language, domain_filter
linkup domain_filter, time_range depth: fast/standard/deep (option)
google-pse country, language, time_range, offset cx required (providerOptions)
searchapi country, language, pagination
youcom country, language, time_range, domain_filter, full_page
searxng language, time_range Self-hosted, noAuth

Provider IS the model — "provider":"tavily" ≡ "model":"tavily".

版本历史

  • 7f436e2 当前 2026-07-05 15:26

同 Skill 集合

skills/9router-chat/SKILL.md
skills/9router-embeddings/SKILL.md
skills/9router-image/SKILL.md
skills/9router-stt/SKILL.md
skills/9router-tts/SKILL.md
skills/9router-web-fetch/SKILL.md
skills/9router/SKILL.md

元信息

文件数
0
版本
7f436e2
Hash
6ee43b58
收录时间
2026-07-05 15:26

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 09:55
浙ICP备14020137号-1 $访客地图$