Anthropic Capability major

Dynamic filtering trims web search and web fetch results before they reach the context window

Web search and web fetch can now run results through sandboxed code execution and keep only what is relevant, reducing tokens on search-heavy requests. Requires web_search_20260209 or later and Claude 4.6 or later models.

What does this mean for me?

Plan for it
  • Engineering leadership

    Cost, risk, timeline, team impact Plan for it

    Upgrading search-heavy workloads to the new tool version cuts input tokens by filtering results before they hit the context window, and the filtering itself is free. Worth scheduling as a cost-reduction item for teams running research or agentic search.

  • Engineer

    What to change, what breaks, what to test Plan for it

    Move to `web_search_20260209` or later on a Claude 4.6+ model to get dynamic filtering; on that version `allowed_callers` defaults to `["code_execution_20260120"]` and the API provisions code execution for you. Be aware search now runs from inside the code execution sandbox, so review that against your tool-permission and audit assumptions.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a developer tooling change and does not affect the Claude apps.

With the older web_search_20250305 tool version, every search result is loaded into the context window whether or not it is relevant. From web_search_20260209 onward, Claude instead writes and runs code that filters results first, so only the relevant content is admitted — Anthropic’s stated benefit is lower token use and better performance on search-heavy requests.

The mechanism is worth understanding because it changes what runs on your behalf: dynamic filtering executes web search from inside the code execution tool. On web_search_20260209 and later the tool’s allowed_callers field defaults to ["code_execution_20260120"], and the API provisions the code execution it needs automatically — you do not add the code execution tool to tools yourself, and there is no extra charge for those code execution calls beyond standard token costs.

To get the behaviour you must opt in by version, not by parameter: request a tool version of web_search_20260209 or later, and use a Claude 4.6 or later model. On older versions or older models, search behaves as before. Zero data retention and allowed_callers considerations are documented on the server tools page.

As of this writing a further version, web_search_20260318, adds a response inclusion control for agentic workflows; that is a later change and is not part of this entry.

API surface

ParameterChangeBreakingModels
web_search_20260209 (dynamic filtering, allowed_callers default)addednoclaude-sonnet-4-6 claude-opus-4-6

Terms on this page: Context window

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person