Feature: Add web_fetch server tool for Anthropic#514
Merged
mikehostetler merged 3 commits intoagentjido:mainfrom Mar 22, 2026
Merged
Feature: Add web_fetch server tool for Anthropic#514mikehostetler merged 3 commits intoagentjido:mainfrom
mikehostetler merged 3 commits intoagentjido:mainfrom
Conversation
Add `web_fetch:` option for Anthropic provider, following the same pattern
as the existing `web_search:` option. This enables Claude's server-side
web_fetch_20260209 tool with dynamic filtering.
Usage:
ReqLLM.generate_text(model, messages,
web_fetch: %{max_uses: 3, allowed_domains: ["example.com"]}
)
Supported options: max_uses, allowed_domains, blocked_domains,
max_content_tokens, citations.
Can be combined with regular tools and web_search.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a coverage test that verifies web_fetch tool integration through the high-level ReqLLM.generate_text API, with a cached fixture recorded against claude-sonnet-4-5. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Description
Add
web_fetch:option for the Anthropic provider, enabling Claude's server-sideweb_fetch_20260209tool with dynamic filtering. Follows the same pattern as the existingweb_search:option.Type of Change
Changes
maybe_add_toolsandbuild_web_fetch_toolin the Anthropic providermaybe_put_web_search/3andget_web_search_option/2tomaybe_put_server_tool_opt/3andget_server_tool_opt/2since they're now shared between web_search and web_fetchBreaking Changes
N/A
Testing
mix test)mix quality)Checklist
CHANGELOG.md(it is auto-generated by git_ops)Related Issues
Closes #