Tavily Search
AI-optimized web search using Tavily API. Designed for AI agents - returns clean, relevant content.
Search
bash
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/search.mjs "query"
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/search.mjs "query" -n 10
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/search.mjs "query" --deep
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/search.mjs "query" --topic news
Options
- •
-n <count>: Number of results (default: 5, max: 20) - •
--deep: Use advanced search for deeper research (slower, more comprehensive) - •
--topic <topic>: Search topic -general(default) ornews - •
--days <n>: For news topic, limit to last n days
Extract Content from URL
bash
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/extract.mjs "https://example.com/article"
node ${MORDECAI_SKILLS_BASE_DIR}/[USER_NAME]/tavily-search/scripts/extract.mjs "url1" "url2" "url3"
Extracts raw content from one or more URLs for processing.
Requirements
- •
TAVILY_API_KEYenvironment variable (get from https://tavily.com) - •Node.js runtime
Notes
- •Tavily is optimized for AI - returns clean, relevant snippets
- •Use
--deepfor complex research questions - •Use
--topic newsfor current events