// AI Platform Drift
Cloudflare Agents SDK adds web_search tool via Web Search API
Cloudflare developer changelog · published 2026-10-18 22:56 UTC
WHAT CHANGEDCloudflare Agents SDK v0.27.0 added a web_search tool that queries the public web through the Cloudflare Web Search API, powered by ceramic.ai, Exa, and Linkup. The tool returns numbered lists of titles, URLs, and descriptions; when paired with web_fetch, agents can read returned pages. The SDK also includes AI SDK and TanStack AI adapters, plus createAIWebSearch() and createHTTPWebSearch() functions for non-model usage.
WHY IT MATTERSAgents built on Cloudflare can now retrieve current web information without implementing custom search integration. This enables real-time data retrieval for agents that previously could only work with training data or provided context.
WHAT TO DOIf you run agents on Cloudflare that need web access, upgrade to Agents SDK v0.27.0 or later, import webSearchTool from agents/websearch/pi, and install it in your Pi Durable extension registry with your chosen provider (exa shown in example). See the Web search documentation for configuration options.
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## Agents - New web_search tool in the Agents SDK, powered by the Cloudflare Web Search API +https://developers.cloudflare.com/changelog/post/2026-10-12-web-search/ +Mon, 12 Oct 2026 00:00:00 GMT + +The Cloudflare Agents SDK now provides a web_search tool that searches the public web through the Cloudflare Web Search API, powered by ceramic.ai, Exa, and Linkup. +When you give the web_search tool to your agent, the model provides a query and max results, and receives back a short numbered list of titles, URLs, and trimmed descriptions. When you also provide the web_fetch tool to your agent, the model is told to use it to read the pages that the web_search tool returns. +To use the web_search tool, make sure you have Agents SDK v0.27.0 ↗︎ or greater installed, and add it to a Pi Durable extension registry before opening the harness: +import { webSearchTool } from "agents/websearch/pi"; + +export class MyAgent extends DurableObject { +// ... + +harness = new PiHarness({ +harness: async ({ storage, context }) => { +this.registry.install({ +name: "web-tools", +tools: [webSearchTool({ binding: this.env.AI, provider: "exa" })], +}); + +// ... + +return Harness.open( +storage, +{ models, registry: this.registry }, +context, +); +}, +}); +}import { webSearchTool } from "agents/websearch/pi"; + +export class MyAgent extends DurableObject<Env> { +// ... + +readonly harness = new PiHarness({ +harness: async ({ storage, context }) => { +this.registry.install({ +name: "web-tools", +tools: [webSearchTool({ binding: this.env.AI, provider: "exa" })], +}); + +// ... + +return Harness.open( +storage, +{ models, registry: this.registry }, +context, +); +}, +}); +} +The SDK also includes AI SDK and TanStack AI adapters. To search without a model, such as from a scheduled job, use createAIWebSearch() or createHTTPWebSearch() from agents/websearch. +For setup, options, and error handling, refer to Web search.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | New web_search tool capability added to Agents SDK with version floor and integration requirements. |
| signals | new tool added to SDK · new API capability (web_search) · SDK version requirement (v0.27.0+) · new integration point (Agents SDK + Web Search API) · code example showing implementation path |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |