// AI Platform Drift

Cloudflare Agents SDK adds web_fetch tool for webpage reading

Cloudflare developer changelog · published 2026-10-18 22:56 UTC
WORTH KNOWING VERIFY_ONLY API
WHAT CHANGEDCloudflare Agents SDK v0.28.0 added a web_fetch tool that reads webpages, PDFs, and Office documents, converting them to markdown via Workers AI. The tool returns page content, final URL, HTTP status, and content type. Long pages are returned in sections with offset continuation. When paired with web_search, the model automatically uses web_fetch to read returned pages. The SDK also provides standalone functions fetchWeb(), windowWebFetchPage(), and renderWebFetchPage() for direct fetching without a model call.
WHY IT MATTERSAgents can now retrieve and process web content directly without custom fetch implementations. The automatic markdown conversion and chunking for long documents removes the need to handle format conversion and pagination manually. Pairing with web_search creates a complete browse-and-read capability.
WHAT TO DOIf you use Cloudflare Agents SDK and want web content retrieval, upgrade to v0.28.0 or later and add webFetchTool to your Pi Durable extension registry before opening the harness, following the code pattern at https://developers.cloudflare.com/changelog/post/2026-10-11-web-fetch/. Configure allowed hosts, response size limits, timeouts, and redirect behavior for your use case.
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_fetch tool in the Agents SDK for reading webpages and documents, with automatic markdown conversion
+https://developers.cloudflare.com/changelog/post/2026-10-11-web-fetch/
+Mon, 12 Oct 2026 00:00:00 GMT
+
+The Cloudflare Agents SDK now provides a web_fetch tool that reads webpages, PDFs, and supported Office documents, using Workers AI Markdown Conversion to turn them into text the model can read. The tool requests Markdown directly from sites that support Markdown for Agents and formats JSON for the model.
+When you give the web_fetch tool to your agent, the model provides a URL and receives back the page content, along with the final URL, HTTP status, and content type. Long pages come back in smaller sections, with an offset the model can use to continue reading. You control which hosts the agent can fetch, response size, timeouts, and redirects.
+When you also provide the web_search tool to your agent, the model is told to use web_fetch to read the pages that web_search returns.
+To use the web_fetch tool, make sure you have Agents SDK v0.28.0 ↗︎ or greater installed, and add it to a Pi Durable extension registry before opening the harness:
+import { webFetchTool } from "agents/webfetch/pi";
+
+export class MyAgent extends DurableObject {
+// ...
+
+harness = new PiHarness({
+harness: async ({ storage, context }) => {
+this.registry.install({
+name: "web-tools",
+tools: [webFetchTool({ binding: this.env.AI })],
+});
+
+// ...
+
+return Harness.open(
+storage,
+{ models, registry: this.registry },
+context,
+);
+},
+});
+}import { webFetchTool } from "agents/webfetch/pi";
+
+export class MyAgent extends DurableObject<Env> {
+// ...
+
+readonly harness = new PiHarness({
+harness: async ({ storage, context }) => {
+this.registry.install({
+name: "web-tools",
+tools: [webFetchTool({ binding: this.env.AI })],
+});
+
+// ...
+
+return Harness.open(
+storage,
+{ models, registry: this.registry },
+context,
+);
+},
+});
+}
+The web_fetch tool works with any harness. The SDK includes AI SDK and TanStack AI adapters. If you use a different harness, or need to fetch a page without calling a model, use fetchWeb(), windowWebFetchPage(), and renderWebFetchPage() from agents/webfetch. Direct fetching does not require a Durable Object or browser.
+For setup, examples, and request controls, refer to Web fetch.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningNew tool and API surface added to Agents SDK with version floor and integration patterns.
signalsnew SDK tool added (web_fetch) · new SDK version requirement (v0.28.0 or greater) · new API surface (webFetchTool, fetchWeb, windowWebFetchPage, renderWebFetchPage) · new integration capability (web_search + web_fetch pairing) · new feature with code examples and setup requirements
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)