tavily-dynamic-search

Searches the web with Tavily and filters results through Python to keep raw content out of context.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/flemx/salesforce-langgraph-agent --skill tavily-dynamic-search-flemx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tavily-dynamic-search
Source: https://github.com/flemx/salesforce-langgraph-agent/tree/main/.agents/skills/tavily-dynamic-search
Command: npx skills add https://github.com/flemx/salesforce-langgraph-agent --skill tavily-dynamic-search-flemx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web search results often return hundreds of thousands of characters of raw HTML, navigation bars, and boilerplate that flood the AI's context window and degrade reasoning quality. This Skill processes search results inside Python scripts so only curated, filtered output enters the context window, achieving a 100-200x reduction in noise. ## Core Features & Use Cases - Context-Isolated Search: Pipes tvly search and tvly extract output through Python filtering code so only relevant print() output reaches the model. - Multi-Turn Research Workflows: Saves raw results to /tmp/ files, then explores titles, drills into selected sources, and follows leads across turns without re-fetching. - Query-Adaptive Filtering: Supports pipe mode, heredoc mode, and jq fallback, with filtering logic tailored to each query type (financial figures, technical specs, news dates). - Use Case: Researching a topic like solid-state battery commercialization — search broadly, triage 8 results by title and score, then extract only paragraphs mentioning specific companies and production timelines from the top sources. ## Quick Start Ask the agent to search the web for a current topic and extract only the key details, for example: search for the latest news on EU AI Act deadlines and summarize the important obligations.

Frequently Asked Questions about tavily-dynamic-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search the web without flooding my context window?

Pipe tvly search JSON output into a Python script that filters and prints only relevant fields. Raw page content stays in the Python process memory or a /tmp/ file, and only your print() output enters the context window.

How to extract specific information from web search results with Python?

Load the tvly JSON response in Python, then filter paragraphs or lines by keywords, length, and structure relevant to your query. For financial queries filter lines with numbers and terms like revenue; for technical queries keep code blocks and specifications.

What is the difference between tvly search and tvly extract?

tvly search returns titles, URLs, snippets, and scores for a query, optionally with full page content via --include-raw-content. tvly extract fetches the full page markdown for specific URLs you already identified from search results.

Can I use jq instead of Python for filtering Tavily results?

Yes, jq works as a fallback for simple lookups, such as selecting results above a score threshold with title, url, and content fields. However, jq cannot handle multi-step search-then-extract workflows or complex filtering logic, so Python is preferred.

Why should I save search results to /tmp/ instead of printing everything?

Saving raw JSON to /tmp/ preserves the full dataset on disk across turns without consuming context tokens. You can then run separate extraction passes in later turns, choosing which sources to drill into based on the titles you already reviewed.