Improved Web Search with Dynamic Filtering | Claude
- Source: https://claude.com/blog/improved-web-search-with-dynamic-filtering
- Mirror: https://claude.com/blog/improved-web-search-with-dynamic-filtering
- Published:
- Saved: 2026-02-19
Content
Improved Web Search with Dynamic Filtering | Claude
Meet Claude
Products
Features
Models
Platform
Solutions
Use cases
Industries
Pricing
Resources
Insights
Learn
Tools
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Meet Claude
Products
Features
Models
Platform
Solutions
Use cases
Industries
Pricing
Resources
Insights
Learn
Tools
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Contact sales
Contact salesContact sales
Try Claude
Try ClaudeTry Claude
Blog
Blog
/
Increase web search accuracy and efficiency with dynamic filtering
Explore here

Increase web search accuracy and efficiency with dynamic filtering
Dynamic filtering makes Claude more accurate and efficient on complex web search tasks. Here’s how it works, and how to enable it on the API.
Category
Product announcements
Product
Claude Developer Platform
Date
February 17, 2026
Reading time
5
min
Share
Copy link
https://claude.com/blog/improved-web-search-with-dynamic-filtering
Alongside Claude Opus 4.6 and Sonnet 4.6, we’re releasing new versions of our web search and web fetch tools. Claude can now natively write and execute code during web searches to filter results before they reach the context window, improving its accuracy and token efficiency.
Web search with dynamic filtering
Web search is a highly token-intensive task. Agents using basic web search tools need to make a query, pull search results into context, fetch full HTML files from multiple websites, and reason over it all before responding. But the context being pulled in from search is often irrelevant, which degrades the quality of the response.
To improve Claude’s performance on web searches, our web search and web fetch tools now automatically write and execute code to post-process query results. Instead of reasoning over full HTML files, Claude can dynamically filter the search results before loading them into context, keeping only what’s relevant and discarding the rest.
We’ve previously foundthis technique to be effective across other agentic workflows, and we’ve added tools such as code execution and programmatic tool calling for native support on our API. We’re now bringing these same techniques to web search and web fetch.
Evaluating Claude’s ability to search the web
We evaluated web search on Sonnet 4.6 and Opus 4.6 with and without dynamic filtering and no other tools enabled. Across two benchmarks, BrowseComp and DeepsearchQA, dynamic filtering improved performance by an average of 11% while using 24% fewer input tokens.
BrowseComp: Searching the web to find one answer
BrowseComp tests whether an agent can navigate many websites to find a specific piece of information that is deliberately hard to find online. Dynamic filtering improved Claude’s accuracy significantly, bringing Sonnet 4.6 from 33.3% to 46.6% and Opus 4.6 from 45.3% to 61.6%.

DeepsearchQA: Searching the web to find many answers
DeepsearchQA presents agents with research queries that have many correct answers, all of which must be found via web search. It tests whether an agent can systematically plan and execute multi-step searches without missing any answers. It’s measured by an “F1 score,” which balances precision and recall—capturing both the accuracy of returned answers and the completeness of the search.
Dynamic filtering improved Claude’s F1 score from 52.6% to 59.4% for Sonnet 4.6 and from 69.8% to 77.3% for Opus 4.6.

Token costs will vary depending on how much code the model needs to write to filter context. Price-weighted tokens decreased for Sonnet 4.6 on both benchmarks but increased for Opus 4.6. To better understand your own costs, we recommend evaluating this tool against a representative set of web search queries your agent is likely to encounter in production.
Customer spotlight: Quora
Poe by Quora is one of the largest multi-model AI platforms, giving millions of users access to over 200 models through a single interface. Internal teams at Quora found that Opus 4.6 with dynamic filtering “achieved the highest accuracy on our internal evals when tested against other frontier models,” said Gareth Jones, Product and Research Lead. “The model behaves like an actual researcher, writing Python to parse, filter, and cross-reference results rather than reasoning over raw HTML in context.”
Dynamic filtering in the web search and fetch tools
Dynamic filtering will be turned on by default when using our new web search and web fetch tools with Sonnet 4.6 and Opus 4.6 on the Claude API. For complex web search queries, such as sifting through technical documentation or verifying citations, you can expect similar performance improvements to those shown above.
Here’s how to use it in the API:
{
model: claude-opus-4-6,
max_tokens: 4096,
tools: [
{
type: web_search_20260209,
name: web_search
},
{
type: web_fetch_20260209,
name: web_fetch
}
],
messages: [
{
role: user,
content: Search for the current prices of AAPL and GOOGL, then calculate which has a better P/E ratio.
}
]
}
Code execution, memory, and more tools are now generally available
We’re also graduating several tools to general availability to help agents perform better across token-intensive tasks:
-
Code execution: Provides a sandbox for agents to run code during a conversation to filter context, analyze data, or perform calculations.
-
Memory: Store and retrieve information across conversations through a persistent file directory, so agents can retain context without keeping everything in the context window.
-
Programmatic tool calling: Execute complex multi-tool workflows in code, keeping intermediate results out of the context window.
-
Tool search: Dynamically discover tools from large libraries without loading all definitions into the context window.
-
Tool use examples: Provide sample tool calls directly in your tool definitions to demonstrate usage patterns and reduce parameter errors.
Getting started
Improved web search and web fetch—as well as code execution, memory, programmatic tool calling, tool search, and tool use examples—are available now on the Claude Developer Platform. Read our API documentation to get started.
No items found.
PrevPrev
0/5
NextNext
eBook



FAQ
No items found.
Related posts
Explore more product news and best practices for teams building with Claude.

Jan 12, 2026
Cowork: Claude Code for the rest of your work
Product announcements
Cowork: Claude Code for the rest of your workCowork: Claude Code for the rest of your work
Cowork: Claude Code for the rest of your workCowork: Claude Code for the rest of your work

Jan 26, 2026
Your favorite work tools are now interactive connectors inside Claude
Product announcements
Your favorite work tools are now interactive connectors inside ClaudeYour favorite work tools are now interactive connectors inside Claude
Your favorite work tools are now interactive connectors inside ClaudeYour favorite work tools are now interactive connectors inside Claude

Dec 8, 2025
Claude Code and Slack
Product announcements
Claude Code and SlackClaude Code and Slack
Claude Code and SlackClaude Code and Slack

Aug 25, 2025
Piloting Claude in Chrome
Product announcements
Piloting Claude in ChromePiloting Claude in Chrome
Piloting Claude in ChromePiloting Claude in Chrome
Transform how your organization operates with Claude
See pricing
See pricingSee pricing
Contact sales
Contact salesContact sales
Get the developer newsletter
Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.
SubscribeSubscribe
Please provide your email address if youd like to receive our monthly developer newsletter. You can unsubscribe at any time.
Thank you! You’re subscribed.
Sorry, there was a problem with your submission, please try again later.
HomepageHomepage
NextNext
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Write
Button TextButton Text
Learn
Button TextButton Text
Code
Button TextButton Text
Write
Help me develop a unique voice for an audience
Hi Claude! Could you help me develop a unique voice for an audience? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Improve my writing style
Hi Claude! Could you improve my writing style? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Brainstorm creative ideas
Hi Claude! Could you brainstorm creative ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Learn
Explain a complex topic simply
Hi Claude! Could you explain a complex topic simply? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Help me make sense of these ideas
Hi Claude! Could you help me make sense of these ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Prepare for an exam or interview
Hi Claude! Could you prepare for an exam or interview? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Code
Explain a programming concept
Hi Claude! Could you explain a programming concept? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Look over my code and give me tips
Hi Claude! Could you look over my code and give me tips? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Vibe code with me
Hi Claude! Could you vibe code with me? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
More
Write case studies
This is another test
Write grant proposals
Hi Claude! Could you write grant proposals? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to — like Google Drive, web search, etc. — if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can - an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Write video scripts
this is a test
AnthropicAnthropic
© [year] Anthropic PBC
Products
Claude
ClaudeClaude
Claude Code
Claude CodeClaude Code
Cowork
CoworkCowork
Max plan
Max planMax plan
Team plan
Team planTeam plan
Enterprise plan
Enterprise planEnterprise plan
Download app
Download appDownload app
Pricing
PricingPricing
Log in
Log inLog in
Features
Claude in Chrome
Claude in ChromeClaude in Chrome
Claude in Slack
Claude in SlackClaude in Slack
Claude in Excel
Claude in ExcelClaude in Excel
Claude in PowerPoint
Claude in PowerPointClaude in PowerPoint
Skills
SkillsSkills
Models
Opus
OpusOpus
Sonnet
SonnetSonnet
Haiku
HaikuHaiku
Solutions
AI agents
AI agentsAI agents
Code modernization
Code modernizationCode modernization
Coding
CodingCoding
Customer support
Customer supportCustomer support
Education
EducationEducation
Financial services
Financial servicesFinancial services
Government
GovernmentGovernment
Healthcare
HealthcareHealthcare
Life sciences
Life sciencesLife sciences
Nonprofits
NonprofitsNonprofits
Claude Developer Platform
Overview
OverviewOverview
Developer docs
Developer docsDeveloper docs
Pricing
PricingPricing
Regional compliance
Regional complianceRegional compliance
Amazon Bedrock
Amazon BedrockAmazon Bedrock
Google Cloud’s Vertex AI
Google Cloud’s Vertex AIGoogle Cloud’s Vertex AI
Console login
Console loginConsole login
Learn
Blog
BlogBlog
Claude partner network
Claude partner networkClaude partner network
Courses
CoursesCourses
Connectors
ConnectorsConnectors
Customer stories
Customer storiesCustomer stories
Engineering at Anthropic
Engineering at AnthropicEngineering at Anthropic
Events
EventsEvents
Plugins
PluginsPlugins
Powered by Claude
Powered by ClaudePowered by Claude
Service partners
Service partnersService partners
Startups program
Startups programStartups program
Tutorials
TutorialsTutorials
Use cases
Use casesUse cases
Company
Anthropic
AnthropicAnthropic
Careers
CareersCareers
Economic Futures
Economic FuturesEconomic Futures
Research
ResearchResearch
News
NewsNews
Responsible Scaling Policy
Responsible Scaling PolicyResponsible Scaling Policy
Security and compliance
Security and complianceSecurity and compliance
Transparency
TransparencyTransparency
Help and security
Availability
AvailabilityAvailability
Status
StatusStatus
Support center
Support centerSupport center
Terms and policies
Privacy choices
Cookie settings
We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy here.
Customize cookie settings Reject all cookies Accept all cookies
Necessary
Enables security and basic functionality.
Required
Analytics
Enables tracking of site performance.
Off
Marketing
Enables ads personalization and tracking.
Off
Save preferences
Privacy policy
Privacy policyPrivacy policy
Responsible disclosure policy
Responsible disclosure policyResponsible disclosure policy
Terms of service: Commercial
Terms of service: CommercialTerms of service: Commercial
Terms of service: Consumer
Terms of service: ConsumerTerms of service: Consumer
Usage policy
Usage policyUsage policy
x.comx.com
LinkedInLinkedIn
YouTubeYouTube
InstagramInstagram
English (US)
English (US)
日本語 (Japan)
Deutsch (Germany)
Français (France)
한국어 (South Korea)
Claude Developer Platform
Agents