tavily-dynamic-search

द्वारा tavily-ai

वेब खोजें, परिणामों को फ़िल्टर करें, और सामग्री निकालें ताकि कच्चा खोज डेटा कभी आपके कॉन्टेक्स्ट विंडो में प्रवेश न करे। केवल आपका क्यूरेटेड print() आउटपुट वापस आता है।

npx skills add https://github.com/tavily-ai/skills --skill tavily-dynamic-search

Tavily Dynamic Search

Keep large raw web payloads on disk and return only the evidence needed for the task. This is useful when using --include-raw-content, combining several queries, or extracting multiple long pages. Do not use this workflow for a simple lookup that a normal tvly search --json can answer directly.

Before running

Search and extract support capped keyless access. Run them directly when tvly is available. If tvly is missing, follow the tavily-cli setup. Do not look for an API key or authenticate before the first request. If the keyless cap is reached in an interactive session, run tvly login to open browser OAuth, then retry the blocked request once. In an unattended environment, report the cap and authentication options instead of starting an interactive flow.

Workflow

  1. Search broadly without raw content and inspect titles, URLs, scores, and snippets.
  2. Fetch full content only for the best sources.
  3. When raw output could be large, save it with -o and filter the file before printing anything to the model context.
  4. Preserve source URLs beside every extracted fact.

When the user restricts evidence to official or named domains, validate the hostname of every selected URL during local filtering. --include-domains narrows the search but is not proof that every returned result belongs to an allowed host. If full-page extraction is unavailable, label conclusions as search-snippet evidence instead of implying that the page body was verified.

Keep the process in one turn when the relevant sources and filters are already known. Use another turn only when the first search changes what should be extracted.

Create a unique temporary task directory before saving evidence so concurrent agents do not overwrite one another. Python's tempfile.mkdtemp() is available when mktemp is not permitted. Reuse that directory for all raw and filtered artifacts from the task.

Small result: filter a direct JSON response

For a small search response, a pipe is enough:

tvly search "query" --max-results 5 --json | python3 -c '
import json, sys
data = json.load(sys.stdin)
for result in data.get("results", []):
    score = result.get("score") or 0
    title = result.get("title") or ""
    print(f"[{score:.2f}] {title}")
    print(result.get("url", ""))
    print(result.get("content", "")[:300])
'

Do not discard stderr. Authentication failures, keyless-cap messages, and API errors are actionable and must remain visible.

Large result: save first, then filter

Use the CLI's file output so raw page content does not pass through the tool response:

tvly search "query" \
  --include-raw-content markdown \
  --max-results 8 \
  --json \
  -o /tmp/tavily-search-results.json

Then print only bounded evidence:

python3 -c '
import json
from pathlib import Path

data = json.loads(Path("/tmp/tavily-search-results.json").read_text())
for result in data.get("results", []):
    title = result.get("title") or ""
    url = result.get("url") or ""
    print(f"## {title}")
    print(f"URL: {url}")
    print((result.get("raw_content") or result.get("content") or "")[:1200])
    print()
'

Adjust the filtering logic to the question. Prefer relevant paragraphs or fields over fixed character slices when the target information is known. Aim for roughly 150-600 tokens per source unless a table or code block genuinely requires more.

Targeted extraction

When search identifies the right URLs, extract only those pages:

tvly extract "https://example.com/article" \
  --json \
  -o /tmp/tavily-extract-results.json

For topic-focused pages, let Tavily reduce the response before local filtering:

tvly extract "https://example.com/docs" \
  --query "authentication API" \
  --chunks-per-source 3 \
  --json \
  -o /tmp/tavily-extract-results.json

Multiple queries

For multi-angle research, run a small set of focused searches, deduplicate by URL, and rank before extracting. Use subprocess.run(..., capture_output=True, text=True) when orchestrating commands in Python. Check returncode; if a command fails, surface its stderr and stop or retry deliberately. Never use a blanket except Exception: continue that hides missing evidence.

Response shapes

tvly search --json returns query, optional answer, results, and response_time. Each result commonly contains url, title, content, score, and optional raw_content.

tvly extract --json returns results, failed_results, and response_time. Each successful result commonly contains url, raw_content, and optional images.

Treat fields as optional and use .get() while filtering. Inspect failed_results instead of assuming every requested URL succeeded.

Useful options

OptionPurpose
--max-resultsBound the search result count; default 5, maximum 20
--depthChoose ultra-fast, fast, basic, or advanced
--time-rangeRestrict results to day, week, month, or year
--include-domainsRestrict results to a comma-separated list of trusted domains
--exclude-domainsExclude a comma-separated list of domains
--include-raw-contentInclude full content as markdown or text
-o, --outputSave the complete response to a file

Use jq only for short filters when Python is unavailable:

tvly search "query" --json | jq '[.results[] | {title, url, score, content}]'

tavily-ai की और Skills

research
tavily-ai
किसी भी विषय पर व्यापक शोध, जिसमें स्वचालित स्रोत संग्रह, विश्लेषण और उद्धरण शामिल हैं। स्पष्ट उद्धरणों के साथ बहु-स्रोत वेब शोध करता है, जो तुलना, समसामयिक घटनाओं, बाजार विश्लेषण और विस्तृत रिपोर्ट के लिए आदर्श है। तीन मॉडल विकल्प प्रदान करता है: लक्षित एकल-विषय शोध के लिए मिनी (~30 सेकंड), व्यापक बहु-कोण विश्लेषण के लिए प्रो (~60-120 सेकंड), और API-संचालित जटिलता पहचान के लिए ऑटो। Tavily MCP सर्वर के माध्य
search
tavily-ai
We need to translate the given English text into Hindi, preserving product names, protocol names, URLs, numbers, technical terms. The name "search" is to be preserved only if it appears in the source text. The source text does not contain the word "search" as a standalone name? Actually it says "Web search" at the beginning. The instruction says "Name to preserve: search" but also "Do not include the name unless it appears in the source text." So "search" appears in "Web search" - but that's part of the phrase. I think we should preserve the word "search" as is? The instruction says "preserve product names, protocol names, URLs, numbers, and technical terms." "search" might be considered a technical term? But it's a common word. However, the instruction specifically says "Name to preserve: search" meaning we should not translate the word "search" if it appears. In the source text, "Web search" - the word "search" is there. So we should keep "search" as is.
tavily-best-practices
tavily-ai
We need to translate the given English text to Hindi. The text describes a web search API for LLMs with various features. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "tavily-best-practices" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, labels, etc. Let's translate: "Web search API for LLMs with real-time data access, content extraction, site crawling, and AI-powered research." -> "LLMs के लिए वेब सर्च API जिसमें रीयल-टाइम डेटा एक्सेस, कंटेंट एक्सट्रैक्शन, साइट क्रॉलिंग और AI-संचालित शोध शामिल है।" "Five core methods: search() for web results, extract() for URL content, crawl() for site-wide extraction, map() for URL discovery, and research() for end
tavily-cli
tavily-ai
वेब खोज, सामग्री निष्कर्षण, साइट क्रॉलिंग, और Tavily CLI के माध्यम से गहन शोध। पाँच कमांड मोड: खोज, निष्कर्षण, URL खोज, बल्क क्रॉलिंग, और उद्धरणों के साथ बहु-स्रोत शोध। सभी कमांड संरचित, एजेंटिक वर्कफ़्लो के लिए JSON आउटपुट और फ़ाइल सहेजने का समर्थन करते हैं। एस्केलेशन पैटर्न आपको आपकी आवश्यकताओं के अनुसार सरल खोज से निष्कर्षण, मैपिंग, क्रॉलिंग से लेकर व्यापक शोध
tavily-crawl
tavily-ai
बहु-पृष्ठ वेबसाइट क्रॉलर जिसमें सिमैंटिक फ़िल्टरिंग और मार्कडाउन निर्यात है। गहराई और चौड़ाई नियंत्रण के साथ पूरे साइट अनुभागों को क्रॉल करें; पथ रेगेक्स, डोमेन या प्राकृतिक भाषा निर्देशों द्वारा फ़िल्टर करें ताकि परिणामों को केंद्रित किया जा सके। प्रत्येक पृष्ठ को --output-dir के माध्यम से स्थानीय मार्कडाउन फ़ाइलों के रूप में सहेजें, या एजेंटिक प्रोसेसिंग के लिए संरचित JSON लौटाएँ
tavily-extract
tavily-ai
20 URL तक से स्वच्छ मार्कडाउन या टेक्स्ट निकालें, जिसमें जावास्क्रिप्ट रेंडरिंग और क्वेरी-केंद्रित चंकिंग सहायता हो। जावास्क्रिप्ट-रेंडर किए गए पृष्ठों को कॉन्फ़िगरेबल निष्कर्षण गहराई (सरल पृष्ठों के लिए बेसिक, डायनामिक SPA और तालिकाओं के लिए एडवांस्ड) के साथ संभालता है। केवल प्रासंगिक सामग्री चंक लौटाने के लिए क्वेरी-केंद्रित निष्कर्षण का समर्थन करता है, पूरे पृष्ठों के बजाय। डिफ़
tavily-research
tavily-ai
बहु-स्रोत संश्लेषण और उद्धरणों के साथ व्यापक AI-संचालित अनुसंधान। मॉडल चयन के आधार पर 30-120 सेकंड लेते हुए वेब स्रोतों पर आधारित संरचित रिपोर्ट तैयार करता है (लक्षित प्रश्नों के लिए मिनी, जटिल तुलनाओं के लिए प्रो)। कई आउटपुट प्रारूपों का समर्थन करता है: मार्कडाउन रिपोर्ट, कस्टम स्कीमा के साथ JSON, और कॉन्फ़िगरेबल उद्धरण शैलियाँ (क्रमांकित, MLA, APA, शिकागो)। --no-wait, status, और poll कमांड के
tavily-search
tavily-ai
वेब खोज जिसमें LLM-अनुकूलित परिणाम, सामग्री स्निपेट और प्रासंगिकता स्कोर शामिल हैं। चार खोज गहराई (अल्ट्रा-फास्ट, फास्ट, बेसिक, एडवांस्ड) का समर्थन करता है, जिसमें 20 तक कॉन्फ़िगरेबल परिणाम गणना, डोमेन फ़िल्टरिंग और समय-सीमा प्रतिबंध शामिल हैं। LLM उपभोग के लिए अनुकूलित सामग्री स्निपेट, प्रासंगिकता स्कोर और मेटाडेटा के साथ संरचित JSON आउटपुट लौटाता है। समाचार और वित्त