feat: add Tavily Extract as content extraction option in web_fetch#3
Open
tavily-integrations wants to merge 1 commit intosonpiaz:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
web_fetch, configurable viaFETCH_PROVIDERenv varFETCH_PROVIDER=tavily, Tavily Extract handles content extraction directly (falls back to Readability on failure)extractDepth: "advanced"andformat: "markdown"for best results on JS-heavy pagesFiles changed
tools/web-fetch/index.ts— AddedfetchViaTavily()function, Tavily extract branch inexecute(), low-quality Readability fallback to Tavily, updated tool description.env.example— DocumentedTAVILY_API_KEYandFETCH_PROVIDERvariablespackage.json— Added@tavily/core^0.7.2 dependencyDependency changes
@tavily/core^0.7.2 to dependenciesEnvironment variable changes
TAVILY_API_KEY— Shared with web-search-tavily unit (required for Tavily extract)FETCH_PROVIDER— Optional; values:readability(default) |tavily|apifyNotes for reviewers
await import(...)) to avoid loading the SDK when not needed🤖 Generated with Claude Code
Automated Review