Search for Agents makes your website searchable by AI agents without manually configuring a search integration. Turn it on under Quick Actions on your domain's Overview page in the Cloudflare dashboard. Cloudflare creates an AI Search instance, starts indexing your content, and exposes a search endpoint on your domain.
Cloudflare adds discovery metadata to your HTML pages and, when Markdown for Agents is on, to Markdown responses. Agents can discover the endpoint and search with keywords or natural-language queries:
curl --get "https://example.com/.well-known/search" \ --data-urlencode "q=How do I verify webhook signatures?"
The endpoint supports both GET and HTTP QUERY requests. It returns relevant content in Markdown, not an AI-generated answer, so agents can use the results with their own models.
Search for Agents is available on all plans. Usage is subject to AI Search pricing and plan limits. You can customize configurable settings in the AI Search instance created for your domain.
Prioritized traffic on Cloudflare One Appliance now takes effect when your WAN circuit is slower than the appliance port, which is common for branch Internet connections. Enter the circuit's upload speed on each WAN, and the appliance shapes upload traffic to 95% of that value. Traffic then queues on the appliance instead of in your modem or ISP network, so the appliance can send prioritized applications, such as voice and video calls, ahead of everything else.
Two traffic classes: Applications in the Prioritized traffic list go first. All other traffic is default (best effort). Prioritized traffic cannot completely starve default traffic, and flows within each class share bandwidth fairly.
Dashboard: When you create or edit a WAN, enter Provisioned upload bandwidth (Mbps) and, optionally, Provisioned download bandwidth (Mbps). Saved values appear in the WAN details.
API: Set provisioned_upload_kbps and provisioned_download_kbps, in kilobits per second, when you create or update a WAN. To remove a value with a PATCH request, set it to null.
Both fields are optional. If you do not set the upload value, the appliance does not shape the WAN, which matches how it worked before. The appliance does not currently shape download traffic. Upload shaping requires Appliance version 2026.10.3 or later, which appliances install automatically during their interrupt window.
Cloudflare updated how range requests handle content encoding for both cached files and uncached GET requests over HTTPS.
Cached encoded files
A byte range of a cached file encoded with gzip or Brotli (br) counts bytes of the encoded file, not of the decompressed content (RFC 9110, section 14.1.2 ↗︎). Cloudflare now serves that range only if the client's Accept-Encoding header explicitly lists the encoding without q=0 (and over HTTPS for Brotli). Otherwise, Cloudflare ignores Range (RFC 9110, section 14.2 ↗︎) and sends the complete file as 200 OK using normal content negotiation. Cloudflare always sends the complete 200 OK file for a cached file encoded with Zstandard (zstd) or deflate.
Previously, a client that did not accept the encoding could receive a 206 Partial Content response whose bytes did not match its Content-Range header.
Uncached range requests
If caching is bypassed or the request is not eligible for caching, Cloudflare forwards the client's Range header to your origin. For GET requests over HTTPS, Cloudflare now also forwards the client's own Accept-Encoding header instead of Cloudflare's default gzip, br header. Previously, Cloudflare passed your origin's byte-range 206 Partial Content response to the client without decoding it, so a client could receive a range in an encoding it did not accept.
If a client sends no Accept-Encoding header (on Orange-to-Orange requests), or sends only stripped dictionary encodings (dcb or dcz), your origin can receive an empty Accept-Encoding header. Under RFC 9110, section 12.5.3 ↗︎, an empty Accept-Encoding header means the client accepts no encoding, so your origin should answer it with an unencoded response rather than 406 Not Acceptable.
Range requests that Cloudflare serves from cache, or fetches with Origin Range Requests, still send Cloudflare's own Accept-Encoding header to your origin.
You can now onboard sending domains, send for free to verified destination addresses during development and testing, and upgrade to the Workers Paid plan when going to production to send to arbitrary addresses. Use the Workers binding, the REST API, or SMTP to send alerts, reports, and notifications to your own team without a paid plan.
Sends to verified destination addresses are free on every plan. They do not count toward the monthly quota or the daily sending limits.
src/index.jsjs
export default { async fetch(request, env) { try { await env.EMAIL.send({ from: "alerts@yourdomain.com", to: "oncall@example.com", // A verified destination address subject: "Disk usage above 90%", text: "Disk usage on db-1 is above 90%.", }); } catch (error) { if (error.code === "E_RECIPIENT_PLAN_RESTRICTED") { return new Response("Recipient is not a verified destination address", { status: 403, }); } throw error; } return new Response("Alert sent"); },};
src/index.tsts
export default { async fetch(request, env): Promise<Response> { try { await env.EMAIL.send({ from: "alerts@yourdomain.com", to: "oncall@example.com", // A verified destination address subject: "Disk usage above 90%", text: "Disk usage on db-1 is above 90%.", }); } catch (error) { if (error.code === "E_RECIPIENT_PLAN_RESTRICTED") { return new Response("Recipient is not a verified destination address", { status: 403, }); } throw error; } return new Response("Alert sent"); },} satisfies ExportedHandler<Env>;
Messages that you send from a sending domain to verified destination addresses now count as Email Sending traffic.
Before, the capability to send to verified destination addresses was an Email Routing feature, and these messages were recorded as Email Routing traffic. This change moves this capability to Email Sending, with support for all Email Sending features:
Email Sending events, such as message.delivered and message.bounced, published to your event subscriptions.
To find these messages in the GraphQL Analytics API, filter the Email Sending datasets on the new isVerifiedRecipient field. Messages sent from a domain that has only Email Routing configured are unchanged.
If you sign in to Cloudflare with Apple, GitHub, or Google, you can now confirm your identity with a code sent to your email when you set up two-factor authentication (2FA). Previously, the dashboard asked for a Cloudflare password, which most social login users never created.
Cloudflare asks you to confirm your identity before changing security settings like 2FA. This protects your account if you leave it signed in on a shared or public computer. That check now offers email verification when you do not have a password, so you no longer need to reset a password you never set just to turn on 2FA.
To set up 2FA, go to Profile > Authentication and select Set up under Two-Factor Authentication.
Polish can now create AVIF versions of JPEG and PNG images served from your origin, alongside its existing WebP conversion. AVIF often produces smaller files than WebP, reducing transfer sizes and improving load times for image-heavy sites such as product catalogs, photo galleries, and news publications.
Polish automatically optimizes images on your zone that are served from your origin server. It strips metadata, applies compression, and can convert JPEG and PNG files to more efficient image formats.
cf zones settings edit polish --zone example.com --body '{"value":"lossy"}'cf zones settings edit avif --zone example.com --body '{"value":"on"}'cf zones settings edit webp --zone example.com --body '{"value":"on"}'
AVIF and WebP can be enabled at the same time. When both formats are enabled, Polish selects an output based on browser support, file size, and image quality:
The browser must advertise AVIF support in its Accept header.
Polish serves AVIF only if the converted image is smaller than the original.
If the browser supports both AVIF and WebP, then Polish prefers AVIF.
Browsers without AVIF support continue to receive WebP or the optimized original format.
To log prompt content for AI Security for Apps, configure payload logging and use a WAF custom rule that references a field with the cf.llm.prompt prefix.
When a custom rule matches, payload logging stores the extracted prompt. If no prompt is extracted and analysis falls back to the full request body, payload logging stores the full request body.
This workflow replaces the previous AI Security Log Mode Ruleset procedure. For more information, refer to Log prompts for matching rules.
Send bug reports, feature requests, and feedback about where you got stuck
directly to Cloudflare.
Sign in with cf auth login or set CLOUDFLARE_API_TOKEN, then use
cf feedback with a short note.
cf feedback "The deploy output did not identify the selected environment"
Coding agents connected to the Cloudflare API Model Context Protocol (MCP)
server can use the submit_feedback tool. The tool requires a message,
type, and impact. It accepts optional details such as the task and the
expected and actual results. Both options return a submission ID you can share.
For examples and the diagnostic details included in CLI reports, refer to
Agent feedback.
Starting today, the DNS settings endpoints no longer return or accept the deprecated foundation_dns boolean for zone settings or account defaults. The rollout is expected to take seven days. Use nameservers.type: "cloudflare.advanced" to configure Advanced Nameservers.
Update clients that still read or write foundation_dns. Remove handling for the boolean and use the nameserver type instead. The zone settings JSON for /zones/{zone_id}/dns_settings is:
PATCH requests that include foundation_dns will be rejected.
This API update does not change your Foundation DNS subscription or whether Advanced Nameservers are enabled on your zones. It does not require a zone migration.
In Images, the metadata parameter now supports Extensible Metadata Platform (XMP) metadata preservation and expands Exchangeable Image File Format (EXIF) metadata preservation to additional image formats. It can also preserve selected legacy Information Interchange Model (IPTC-IIM) metadata from JPEG sources, mapping it to XMP when converting to compatible formats.
This release does not change existing Content Credentials support, which can provide tamper-evident provenance and disclose how AI contributed to an image.
What changed
Previously, Images preserved EXIF metadata only for JPEG-to-JPEG optimizations, and did not preserve XMP or IPTC-IIM metadata. You can now keep EXIF and XMP metadata when both the source and output formats support the corresponding metadata type. For JPEG sources, you can also retain selected legacy IPTC-IIM attribution and rights metadata.
EXIF, XMP, and IPTC-IIM carry complementary information about an image. For example, publishers can retain copyright and attribution, and photographers can display capture settings alongside images on portfolio sites. E-commerce and digital asset management workflows can carry product details, captions, and internal asset information into optimized images without reattaching that information.
EXIF, XMP, and IPTC-IIM support varies by source and output format:
Format
Read from source
Write to output
JPEG
EXIF, XMP, and IPTC-IIM
EXIF, XMP, and IPTC-IIM
PNG
EXIF and XMP
EXIF and XMP
WebP
EXIF and XMP
EXIF and XMP
AVIF
EXIF and XMP
EXIF
HEIC
EXIF and XMP
Not an output format
GIF
Not supported
XMP
TIFF
Not supported
Not an output format
For example, you can convert a high-resolution JPEG to WebP while keeping both EXIF and XMP metadata.
With metadata=keep, JPEG outputs retain the original IPTC-IIM metadata. For PNG, WebP, and GIF outputs, Images maps supported IPTC-IIM fields to XMP. If the source already contains XMP, Images preserves that XMP without merging the IPTC-IIM fields.
How it works
Use metadata to control how Images handles supported metadata in re-encoded outputs. The default remains copyright, so existing requests may now preserve an EXIF copyright tag in PNG, WebP, or AVIF outputs when the source contains one.
The following URL transformation converts a JPEG source to WebP and requests metadata preservation:
You can now monitor your K2 streams in the Cloudflare dashboard: how fast records are produced and consumed, how much each stream stores, and how far behind each subscription is.
In the Cloudflare dashboard, go to the K2 Streams page and select a stream.
Overview — Produce and consume rates over the last 5 minutes, stored bytes, and each subscription's records behind, oldest unread record, lag over the last hour, and bytes consumed.
Metrics — Charts of bytes produced by input, bytes stored, and bytes delivered to each subscription, over a time range you choose.
Subscription page — Select a subscription to see its records and bytes behind, its oldest unread record, its consume rate, and charts of its lag and throughput.
k2ProduceAdaptiveGroups — Bytes produced to a stream, by input (http or binding).
k2ConsumeAdaptiveGroups — Bytes delivered to each subscription.
k2StorageAdaptiveGroups — Bytes a stream stores, measured about every ten minutes.
k2SubscriptionLagAdaptiveGroups — Records a subscription has not committed, and the age of the oldest one in milliseconds.
This query reads a stream's bytes produced by input in 5-minute buckets, and a subscription's current lag. To get a subscription's full lag, set the lag query's time range to cover the stream's whole retention period (7 days in this example). A shorter range leaves out older records the subscription has not committed. Replace <ACCOUNT_ID>, <STREAM_ID>, and <SUBSCRIPTION_ID> with your own values.
Bytes produced by input, and a subscription's laggraphql
You can now grant members, User Groups, and API tokens access to the Workers in specific dispatch namespaces. Previously, managing Workers in a namespace required account-wide Workers access. Now you can create a token that deploys Workers to one namespace without giving it access to Workers in other namespaces or elsewhere in your account.
Choose from four roles to control the level of access:
Workers Namespace Metadata Read-Only: View Workers, settings, and bindings in the namespace. Excludes script code and secrets.
Workers Namespace Content Read-Only: Everything in Metadata Read-Only, plus script code and secret names.
Workers Namespace Editor: Create, update, deploy, and delete Workers in the namespace, including their code, settings, and secrets. Cannot view, update, or delete the namespace itself.
Workers Namespace Admin: Everything in Editor, plus the ability to view, update, and delete the namespace itself.
A namespace role applies to every current and future Worker in the selected namespaces, and only to those Workers. Unlike the Workers Editor role, Workers Namespace Editor can create and delete Workers, so use it for teammates who deploy Workers and for CI/CD tokens. For example, scope your staging pipeline's token to the staging namespace so it cannot deploy to production.
Namespace roles are available today for all Workers for Platforms customers. You can configure them in the Cloudflare dashboard or through the API.
Grant access to members and User Groups
In the Cloudflare dashboard, go to the Members page and select a member. Add a permission policy, set the scope to Individual Namespaces, then select the namespaces and a Workers Namespace role.
You can now profile Worker Previews, following the launch of on-demand CPU and memory profiling ↗︎ for Workers and Durable Objects. This lets you see what a pull request costs in CPU and memory before you merge it.
Send traffic to a Preview, capture a CPU or heap profile from one of its deployments, and see which functions in your branch use the most CPU time or memory. Push a fix, profile the next deployment, and compare. Production stays untouched the whole time.
In this Preview, formatPrice takes almost a third of the CPU time because it creates a new Intl.NumberFormat for every product. A slowdown like this is easy to miss in code review, but it stands out in a flamegraph.
Let your agent optimize performance
Previews give coding agents a safe place to iterate on performance. An agent can deploy a Preview, send it load, capture a profile, rewrite the hottest function, and deploy again, until CPU time stops dropping. Each Preview deployment has its own ID, so every profile maps to an exact version of the code.
Open your Preview, select Observability, and switch the view to Flamegraph. Choose a profile type and a Preview deployment, then select Capture profile. Explore the result as a flamegraph or table, or download the raw pprof file.
Profile Durable Objects on a Preview
Every Preview gets its own Durable Object namespaces. To see what one object is doing on your branch, profile it by ID, just like in production.
Agents SDK v0.34.0 upgrades PiHarness to Pi 1.6 ↗︎. A Pi tool can now wait for a person, a deadline, or another session without keeping the Durable Object awake, and a session can start from a history that your application already has.
Tools that wait
Park until a signal or a deadline. A tool can return a "tool park" (Pi's ToolPark type) instead of a result. The tool park registers what the call waits for, and Pi runs it again when a signal arrives or the deadline passes. While it waits, the call holds no invocation, so the Durable Object can hibernate. Deliver signals with the new harness.signal(). Refer to Tools that wait.
Wait for a subagent.submit() and continue() take notify, so a parked tool wakes when another session's input settles. Refer to Wait for a subagent.
Approval gates. A beforeTool hook can park a tool call before it runs, for example until a person approves it.
Session updates
Start a session from an existing history.harness.root(), sessions.create(), and sessions.fork() take Pi's init, which writes messages into the transcript in the commit that creates the session. The root session is now created on its first use, so harness.root() can seed it. Refer to Seed a session with an existing history.
Keep queued input across an abort. With submit(input, { onAbort: "keep" }), stopping an answer does not drop the message that the user or another agent sent next.
Steadier runs. Pi retries more dropped provider connections. When Anthropic can no longer continue a message thread, agents/models/pi-ai sends the whole conversation again instead of failing the turn. PiHarness.dispose() frees Pi AI's per-session state.
Wait for a person's answer
This tool asks the user a question, then parks until your agent delivers the answer. Each time it runs, it checks for the answer first, so the question is shown once:
import { defineSignal } from "@earendil-works/pi-durable";import { obj, str } from "@earendil-works/pi-schema";const Answer = defineSignal({ name: "app.answer", version: 1, schema: obj({ text: str() }),});const AskParameters = obj({ question: str() });const askUser = { name: "ask_user", description: "Ask the user a question and wait for the answer.", parameters: AskParameters, async execute({ question }, api, context) { const answer = await api.readSignal(Answer, "answer", context); if (answer !== undefined && "value" in answer) { return { output: [{ type: "text", text: answer.value.text }] }; } await showQuestion(api.taskId, question); return { sleep: { signals: [Answer.key("answer")] } }; },};// Later, in your agent, when the user answers:await this.harness.signal(taskId, Answer, "answer", { text: "Yes" });
import { defineSignal, type ToolRegistration,} from "@earendil-works/pi-durable";import { obj, str } from "@earendil-works/pi-schema";const Answer = defineSignal({ name: "app.answer", version: 1, schema: obj({ text: str() }),});const AskParameters = obj({ question: str() });const askUser: ToolRegistration<typeof AskParameters> = { name: "ask_user", description: "Ask the user a question and wait for the answer.", parameters: AskParameters, async execute({ question }, api, context) { const answer = await api.readSignal(Answer, "answer", context); if (answer !== undefined && "value" in answer) { return { output: [{ type: "text", text: answer.value.text }] }; } await showQuestion(api.taskId, question); return { sleep: { signals: [Answer.key("answer")] } }; },};// Later, in your agent, when the user answers:await this.harness.signal(taskId, Answer, "answer", { text: "Yes" });
While the question is open, the session's run is still going, and the object can hibernate or be evicted. harness.signal() wakes the object, and Pi runs the tool again with the answer.
Other changes
MCP re-authorization. A request that needs the user to sign in again throws MCPAuthorizationRequiredError with a link. A failed server stays failed until you call the new reconnectMcpServer(id). Refer to Failures and reconnecting.
Failed requests no longer send error details. A failed request gets a generic 500 response, and a failed WebSocket upgrade closes with code 1011. Use onFetchError() to choose the response. Refer to Failed requests.
Chat fixes. Stop, clear, regenerate, and resume now work across tabs and during recovery.
Scheduling fixes. A schedule, queue item, or Task run that is cancelled or replaced no longer runs again.
Models.ai.image() and Pi AI's ai.images() run the FLUX.2 image models. claudeCode() defaults to claude-sonnet-5-5. Examples move off the Workers AI models retired on November 20, 2026.
Upgrade
Once a conversation runs on Pi 1.6, Pi 1.5 cannot run its tool calls or model requests. After upgrading, roll forward to fix deployment issues rather than rolling back to Pi 1.5.
Deliver signals with harness.signal() instead of (await harness.pi()).signal(), and call harness.root() before you reach the root session through harness.pi(). If you use Pi Durable directly, RunEndTask is now HookTask, and code mode namespaces come from Extension.namespace. Refer to the Pi Durable 1.6.0 changelog ↗︎ for the full list of breaking changes.
If you use the MCP client, catch MCPAuthorizationRequiredError and send the user to error.authUrl, and give users a way to call reconnectMcpServer(id) for a failed server. If you relied on error details in failed responses, implement onFetchError().
The Agents SDK v0.34.0 changelog ↗︎ has step-by-step upgrade instructions. Point your coding agent at them and upgrade today:
Browser Run now runs custom browser automation written with Playwright, Puppeteer, or the raw Chrome DevTools Protocol (CDP) in a single API request, with the new /script endpoints. Submit a JavaScript function, and Browser Run executes it in an isolated Worker connected to a browser session, so you do not need to deploy a Worker.
POST /script acquires a browser, runs your function, and returns its result as { "success": true, "result": ... }. The session and page are returned in the cf-browser-session-id and cf-browser-target-id response headers (except Kitesurf runs).
POST /script/<sessionId> runs follow-up scripts in a session you already hold, from /script or from POST /devtools/browser. Pass targetId to attach to a specific page, or create extra pages to run scripts concurrently in one session.
Session launch options (keep_alive, recording, lab) go in the /script query string. Use browser=kitesurf to run a CDP script on Kitesurf.
From a Worker, call the same endpoints through the browser binding with env.BROWSER.script(), without an API token.
From the Cloudflare dashboard, write and run scripts against a live browser in Script Studio, without an API token.
Neither endpoint closes the session after your script runs. Close it with DELETE /devtools/browser/<sessionId> or browser.close(). Otherwise, it ends at its idle timeout.
Cloudflare Images lets you store, optimize, and deliver hosted images through a scalable image pipeline. The new Images Analytics dashboard ↗︎ provides up to 30 days of delivery data for assets stored in Images, helping you understand how and where they are requested.
In Images & Stream > Hosted images > Analytics, you can:
Investigate traffic trends and sources. Review request volume over time, then filter by country, autonomous system number (ASN), or referrer to trace spikes and unexpected traffic.
Troubleshoot delivery. Break down requests by response status code to identify errors. Filter by browser or operating system to understand which output formats different clients receive.
Understand asset and variant usage. Find the most-requested source images and compare predefined variants with inline configurations to see which configurations account for the most requests.
Use cf sql query to query delivery data from the terminal. The SQL API exposes this data in the events.imagesHostedRequests dataset:
cf sql query \ 'SELECT httpStatus, COUNT(*) AS requests FROM events.imagesHostedRequests GROUP BY httpStatus ORDER BY requests DESC LIMIT 20' \ --scope-account "<ACCOUNT_TAG>" \ --time-since "<START_TIME>"
The SQL API also exposes transformation data, such as binding requests, from the events.imagesTransformations dataset:
cf sql query \ 'SELECT isBindingRequest, scriptName, originHost, COUNT(*) AS transformations FROM events.imagesTransformations GROUP BY isBindingRequest, scriptName, originHost ORDER BY transformations DESC LIMIT 5' \ --scope-account "<ACCOUNT_TAG>" \ --time-since "<START_TIME>"
Open the Images Analytics dashboard ↗︎ or use the Cloudflare CLI to investigate recent traffic changes and identify the hosted images and variants driving requests.
Cloudflare RadarZero Wire ↗︎ now has a page for every published CVE. Each page brings together what you need to decide how urgently to act on a vulnerability: how severe it is, whether it is being exploited, what it affects, and how to fix it.
Browse CVEs
The CVE list ↗︎ includes every published CVE. Sort them by date or CVSS score, search by CVE ID or keyword, such as a product or vendor name, and filter by severity and year. Each row shows the CVE's score and highlights CVEs in the CISA Known Exploited Vulnerabilities (KEV) catalog and those with a fix available.
CVE pages
Each CVE page, such as CVE-2021-44228 (Log4Shell) ↗︎, starts with its CVSS score, description, and key dates, followed by:
Exploitation: whether the CVE is in the CISA KEV catalog, including known ransomware use, the CISA SSVC assessment, and the FIRST EPSS probability of exploitation.
Affected products: the affected vendors, products, and versions, as listed by the organization that published the CVE and by NVD.
Recommended actions: how to fix the vulnerability, or reduce the risk until you can, including CISA's guidance for known exploited CVEs.
Severity: every CVSS score for the CVE, with each metric explained.
Weaknesses and attack patterns: the related CWE weaknesses and CAPEC attack patterns.
References: advisories, patches, and other sources.
CVEs cited in Zero Wire briefings ↗︎ link to their CVE pages, and each CVE page links back to the briefings that cite it.
Search and follow
Search for a CVE ID or keyword from anywhere on Radar, using the search bar or Cmd+K (Ctrl+K on Windows and Linux), to jump straight to a CVE page.
To follow new CVEs, subscribe to the RSS ↗︎, Atom ↗︎, or JSON ↗︎ feed. Each feed can be filtered by severity, such as the feed of Critical CVEs ↗︎.
Renaming a namespace could cause API requests to read, deploy, or delete Workers to fail because dispatch Workers and outbound Workers retained the namespace name they were deployed with. This change prevents those failures by rejecting rename requests.
What changes:
PUT and PATCH requests to the dispatch namespace API return a 400 error with code 100413 if they change name:
Dispatch namespaces cannot be renamed. The name in the request must match the namespace's current name. To use a different name, create a new dispatch namespace.
wrangler dispatch-namespace rename returns the same 100413 error.
Terraform applies that attempt to change name on a cloudflare_workers_for_platforms_dispatch_namespace resource fail.
To move your Workers to a namespace with a different name:
Create a new dispatch namespace with the name you want.
Deploy your user Workers to the new namespace.
Update the dispatch namespace binding in your dispatch Worker to reference the new namespace, then redeploy the dispatch Worker.
Verify that requests are routed to the new namespace and your Workers work as expected.
Delete the user Workers in the old namespace, then delete the old namespace.
Browser Run's /snapshot endpoint can now return four more formats from a single page load: pdf, links, scrape, and json. Before, /snapshot returned HTML, screenshots, Markdown, and the accessibility tree, so a workflow that also needed a PDF or structured data had to prepare the same page again in a second request.
Use the new formats when you need to:
PDF: print the page, with the same pdfOptions as the /pdf endpoint.
Links: collect the links on the page, with the same visibleLinksOnly and excludeExternalLinks options as /links.
Scraped elements: return the elements matched by elements, the same payload as /scrape. elements is required when you request it.
Extracted JSON: extract structured data from the page HTML with Workers AI, with the same prompt, response_format, and custom_ai fields as /json. prompt or response_format is required, and the request incurs Workers AI usage.
Request them through formats, the same way as the existing formats. This example returns a PDF, the page links, and the text of each paragraph:
Formats are captured in a fixed order rather than the order of the formats array, and the PDF is printed last because print handlers can change the page. A live page can change between captures, and any format that fails fails the whole request. For JSON snapshots, one actionTimeout budget (default 60 seconds, maximum 120 seconds) covers navigation, captures, retries, and the AI request.
You still need to request at least two distinct formats. If you only need one, use the corresponding single-format endpoint.
Cloudflare has improved how Durable Object storage handles machines restarting during runtime updates.
Each write to a Durable Object's storage must be confirmed by a majority within a group of machines for durability. Machines now proactively remove themselves from the group when restarting, so that they can be replaced before the restart happens.
Previously, this could take up to a few minutes. During that time, a write could fail to reach a majority, and the object was reset with Internal error in Durable Object storage caused object to be reset, disconnecting its WebSockets.
This can make these resets less frequent for SQLite-backed Durable Objects, especially ones that write to storage only occasionally, such as those using WebSocket hibernation. Actual results depend on your workload and traffic patterns.
The change is live in all regions. No action is needed by customers to see benefits from this change. Some disconnects during runtime updates are still expected, so clients should continue to reconnect when a WebSocket closes.
The sharpen parameter now supports Gaussian sharpening, in addition to the existing box-filter sharpening. Sharpening makes fine details appear crisper by increasing the pixel-to-pixel contrast along edges, where adjacent pixels differ in brightness or color. Scalar values such as sharpen=5 continue to use the box filter.
Different images benefit from different types and levels of sharpening. Text may need strong edge definition for readability; product photography often uses a subtler effect to avoid emphasizing grain; and illustrations with bold, clean lines and large areas of solid color can benefit from emphasizing larger edges and object outlines.
Both box and Gaussian sharpening use unsharp masking, a technique that first creates a blurred version of the source image and subtracts it from the original to isolate edge details. Sharpening then adds a controlled amount of that detail back to the source along these boundaries, improving the perceived clarity of an image.
Each filter uses a different method to produce the blur used for this comparison. The existing box filter produces a uniform blur by averaging each pixel with its eight surrounding pixels, weighing all nine equally. A Gaussian filter gives more weight to pixels closer to the center and provides more control to help prevent sharpening from treating unintended parts of an image as edges.
Box sharpening offers a simple, predictable configuration for direct, crisp effects on text, screenshots, and simple graphics. Gaussian sharpening can produce smoother transitions for photography and offers more control over which details are emphasized.
To use Gaussian sharpening, set the mode setting to gaussian, then configure its behavior using the additional amount, sigma, and threshold settings:
Amount adjusts how strongly Images increases contrast around identified edges. It accepts values from 0 to 10.
Sigma controls the spread of the Gaussian blur, which determines how far the sharpening effect extends around an edge. It accepts values greater than 0 and up to 5.
Threshold (optional) excludes pixel differences below a specified value, which can reduce sharpening of low-contrast noise, grain, or smooth areas. It accepts integers from 0 to 255.
Together, these settings let you tailor the sharpening effect to your content.
In the URL interface, these settings are grouped beneath the sharpen parameter: