Loading...
Loading...
Web research skill using Tavily API for search, extract, crawl, map, and structured research tasks. Use when you need latest information, extract content from URLs, or discover site structure. Triggers: tavily, web search, search web, latest info, extract, crawl, map, research, 搜索网页, 查资料, 最新
npx skill4agent add hhsw2015/tavily-web tavily-weboutput_schemaTAVILY_WEB_SKILL_DIRif [ -z "${TAVILY_WEB_SKILL_DIR:-}" ]; then
if [ -f "$HOME/.agent/skills/tavily-web/tavily-api.cjs" ]; then
export TAVILY_WEB_SKILL_DIR="$HOME/.agent/skills/tavily-web"
elif [ -f "$HOME/.claude/skills/tavily-web/tavily-api.cjs" ]; then
export TAVILY_WEB_SKILL_DIR="$HOME/.claude/skills/tavily-web"
elif [ -f "$HOME/.codex/skills/tavily-web/tavily-api.cjs" ]; then
export TAVILY_WEB_SKILL_DIR="$HOME/.codex/skills/tavily-web"
else
echo "Set TAVILY_WEB_SKILL_DIR to your installed skill path." >&2
exit 1
fi
fitavily-fetcherTask parameters:
- subagent_type: Bash
- description: "Call Tavily API"
- prompt: cat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" <search|extract|crawl|map|research>
{ ...payload... }
JSONcat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" search
{
"query": "who is Leo Messi?",
"auto_parameters": false,
"topic": "general",
"search_depth": "basic",
"chunks_per_source": 3,
"max_results": 1,
"time_range": null,
"start_date": "2025-02-09",
"end_date": "2025-12-29",
"include_answer": false,
"include_raw_content": false,
"include_images": false,
"include_image_descriptions": false,
"include_favicon": false,
"include_domains": [],
"exclude_domains": [],
"country": null,
"include_usage": false
}
JSONcat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" extract
{
"urls": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"query": "<string>",
"chunks_per_source": 3,
"extract_depth": "basic",
"include_images": false,
"include_favicon": false,
"format": "markdown",
"timeout": "None",
"include_usage": false
}
JSONcat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" crawl
{
"url": "docs.tavily.com",
"instructions": "Find all pages about the Python SDK",
"chunks_per_source": 3,
"max_depth": 1,
"max_breadth": 20,
"limit": 50,
"select_paths": null,
"select_domains": null,
"exclude_paths": null,
"exclude_domains": null,
"allow_external": true,
"include_images": false,
"extract_depth": "basic",
"format": "markdown",
"include_favicon": false,
"timeout": 150,
"include_usage": false
}
JSONcat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" map
{
"url": "docs.tavily.com",
"instructions": "Find all pages about the Python SDK",
"max_depth": 1,
"max_breadth": 20,
"limit": 50,
"select_paths": null,
"select_domains": null,
"exclude_paths": null,
"exclude_domains": null,
"allow_external": true,
"timeout": 150,
"include_usage": false
}
JSONcat <<'JSON' | node "$TAVILY_WEB_SKILL_DIR/tavily-api.cjs" research
{
"input": "What are the latest developments in AI?",
"model": "auto",
"stream": false,
"output_schema": {
"properties": {
"company": {
"type": "string",
"description": "The name of the company"
},
"key_metrics": {
"type": "array",
"description": "List of key performance metrics",
"items": {
"type": "string"
}
},
"financial_details": {
"type": "object",
"description": "Detailed financial breakdown",
"properties": {
"operating_income": {
"type": "number",
"description": "Operating income for the period"
}
}
}
},
"required": [
"company"
]
},
"citation_format": "numbered"
}
JSON.envTAVILY_API_KEYS=key1,key2,key3TAVILY_API_KEY=key1.env$TAVILY_WEB_SKILL_DIR/.env.env.exampleTAVILY_MAX_RETRIESTAVILY_KEY_STATE_PATH