Repository navigation
browser: deprecate createBrowserTools and Quick Actions in favour of browserTool - #2610
Closed
mattzcarey wants to merge 5 commits into
Closed
mattzcarey wants to merge 5 commits into
mattzcarey wants to merge 5 commits into
Conversation
🦋 Changeset detectedLatest commit: 633b73e The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🔴 agents import sizes: 1 entry point over threshold
Changed exports (4)
How this worksEach runtime export is bundled on its own, minified, and gzipped. Changes smaller than 100 B, or smaller than 1% and 1 KiB, are ignored. Growth over 10% or 5 KiB is marked 🔴. This report is informational and does not fail CI. The workflow artifact contains every measurement. Compared |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
createBrowserTools and createBrowserRuntime are deprecated along with @cloudflare/codemode, which they run on. The browse-the-web guide shows the replacement for a Computer Workspace: the ws:browser module from @cloudflare/computer/modules/browser, given the agent's own Browser. The direct tools (browserTool and the Quick Actions) stay as they are.
mattzcarey
force-pushed
the
browser-computer-module
branch
from
October 18, 2026 11:34
a071047 to
7eec283
Compare
browserTool is now createBrowserCDPTool and createQuickActionTools is now createBrowserQuickActionTools, so each browser tool's name says what it does. The old names stay as deprecated aliases, and a type test checks they match the new ones. Docs, examples and Think's tools/browser re-export use the new names.
browserTool is renamed to createBrowserTool rather than createBrowserCDPTool, with browserTool kept as a deprecated alias. Quick Actions are deprecated instead of renamed: createQuickActionTools, runQuickAction and the browserMarkdown-style helpers keep their names and code, with @deprecated pointing at createBrowserTool, web_fetch, or the binding's quickAction(). The guide and the example's README say so.
This ships before @cloudflare/codemode is deprecated and before @cloudflare/computer has a ws:browser module, so the deprecation messages no longer say codemode is deprecated or point at createBrowserModule, and the Computer section of the guide moves to the follow-up that adds browser.session(), which the module needs.
browserTool isn't renamed after all. The deprecations of createBrowserTools, createBrowserRuntime and the Quick Actions point at browserTool.
ben-reitz
added a commit
that referenced
this pull request
Oct 26, 2026
… Quick Actions (#2666) * feat(browser): deprecate createBrowserTools, createBrowserRuntime and Quick Actions Point users at browserTool from agents/browser/ai-sdk, tanstack-ai or pi. The Quick Action helpers keep working but won't change. Pausing a run while a person works in Live View has no replacement yet, so the docs say to keep using createBrowserTools for that. Ported from #2610. Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> * docs(browser): no contractions in the deprecation notices Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> * chore(browser): the deprecation changeset names BrowserConnector Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> --------- Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Contributor
|
All done in #2666 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecates
createBrowserToolsandcreateBrowserRuntimein favour ofbrowserTool, and deprecates the Quick Action helpers (createQuickActionTools,runQuickAction,browserMarkdownand the rest). The deprecated pieces keep their names, exports and behaviour.browserTooldrives the persistentBrowserand is the browser tool going forward.createBrowserToolsand the Quick Actions are frozen until they're removed:createBrowserToolsbrowserTool, theweb_fetchtool fromagents/webfetch, or calling the binding'squickAction()directlypnpm run check, the browser worker tests and the pi browser test ran. JSDoc, docs and a changeset only.