Repository navigation
docs(agents): add docs and changeset for web_fetch - #2522
Merged
Merged
Conversation
ben-reitz
added this pull request to stack #2523
October 8, 2026 10:12
🦋 Changeset detectedLatest commit: 2303d9f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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: no significant changes ( |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
ben-reitz
force-pushed
the
web-fetch/docs
branch
from
October 8, 2026 11:52
4e6b157 to
c79e8ac
Compare
ben-reitz
removed this pull request from stack #2523
October 8, 2026 11:55
ben-reitz
added this pull request to stack #2528
October 8, 2026 11:55
ben-reitz
force-pushed
the
web-fetch/docs
branch
from
October 8, 2026 12:14
c79e8ac to
7947c61
Compare
ben-reitz
force-pushed
the
web-fetch/docs
branch
from
October 8, 2026 12:28
7947c61 to
c0ba064
Compare
ben-reitz
force-pushed
the
web-fetch/docs
branch
3 times, most recently
from
October 8, 2026 13:17
bcc4cee to
bd11253
Compare
ben-reitz
force-pushed
the
web-fetch/docs
branch
from
October 8, 2026 13:24
bd11253 to
7792653
Compare
ben-reitz
force-pushed
the
web-fetch/docs
branch
2 times, most recently
from
October 8, 2026 13:33
00c9e84 to
284c2a4
Compare
ben-reitz
marked this pull request as ready for review
October 8, 2026 13:45
Adds docs/agents/fetch-the-web.md (options, what the model sees, URL policy, error codes, Think and model-free usage), links it from the docs index and Search the Web, and adds the agents and @cloudflare/think changesets for the web_fetch stack.
ben-reitz
force-pushed
the
web-fetch/docs
branch
from
October 8, 2026 14:05
284c2a4 to
89a23fd
Compare
aron-cf
reviewed
Oct 8, 2026
aron-cf
reviewed
Oct 8, 2026
aron-cf
reviewed
Oct 8, 2026
ben-reitz
force-pushed
the
web-fetch/docs
branch
2 times, most recently
from
October 8, 2026 14:37
04330a5 to
2303d9f
Compare
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| "agents": patch | |||
Contributor
There was a problem hiding this comment.
🔍 Web fetch release classification differs
The agents/webfetch changeset requests a patch, but the PR description expects a minor release. A separate pending minor changeset can mask the difference when released together; confirm the intended version bump.
Was this helpful? React with 👍 or 👎 to provide feedback.
Merged
brandhaug
added a commit
to brandhaug/b2b-saas-starter
that referenced
this pull request
Oct 12, 2026
## pnpm-workspace.yaml (default)
## Dependency Updates
| Package | From | To | Type |
| --- | --- | --- | --- |
| `agents` | 0.27.0 | 0.28.0 | minor |
## Release Notes
<details>
<summary><b>agents</b> (0.27.0 → 0.28.0)</summary>
This release adds two new tools, `browser` via
`agents/browser/{pi,ai-sdk,tanstack-ai}` allowing an agent to create and
manipulate a persistent browser session and `web_fetch` via
`agents/webfetch/{pi,ai-sdk,tanstack-ai}` that can retrieve most
document formats converted into markdown.
### Minor Changes
- [#2484](cloudflare/agents#2484)
[`dedbee4`](cloudflare/agents@dedbee4)
Thanks [@<!---->ben-reitz](https://github.com/ben-reitz)! - Add
`browserTool()` to `agents/browser/pi`. See [Persistent
browser](https://github.com/cloudflare/agents/blob/main/docs/agents/browse-the-web.md#persistent-browser).
- [#2473](cloudflare/agents#2473)
[`6614955`](cloudflare/agents@6614955)
Thanks [@<!---->mattzcarey](https://github.com/mattzcarey)! - Make
`agents/lifecycle` stable along with the `Scheduler`
(`agents/schedules`), `State` (`agents/state`), `WebSockets`
(`agents/websockets`) and `MCPClientManager` (`agents/mcp/client`)
capabilities. See
[Lifecycle](https://github.com/cloudflare/agents/blob/main/docs/agents/lifecycle.md).
### Patch Changes
- [#2540](cloudflare/agents#2540)
[`b65956e`](cloudflare/agents@b65956e)
Thanks [@<!---->mattzcarey](https://github.com/mattzcarey)! -
`ThinkHarness` now keeps its sessions and operations in the shared
`agents/harness/store`. Migrations are performed on first run. See
[ThinkHarness:
Recovery](https://github.com/cloudflare/agents/blob/main/docs/agents/harnesses/think.md#recovery).
- [#2522](cloudflare/agents#2522)
[`bcf5d20`](cloudflare/agents@bcf5d20)
Thanks [@<!---->ben-reitz](https://github.com/ben-reitz)! - Add
`agents/webfetch`, a `web_fetch` tool that reads a URL as Markdown,
JSON, or text (HTML, PDF, and Offi
…[full
notes](https://github.com/cloudflare/agents/releases/tag/agents%400.28.0)
</details>
---
*This PR was auto-generated by
[catalog-update-action](https://github.com/brandhaug/catalog-update-action).*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
Summary
Docs and changesets for the
web_fetchstack (#2525 → #2521).The guide follows
search-the-web.md: an AI SDK example first, then a table of host options and defaults (pageChars20,000 ·maxBytes5 MB ·timeoutMs30 s ·maxRedirects5), what the model reads (<untrusted_web_content>wrapper, the chars/offset header), the URL policy (what's rejected, and the honest note that names aren't resolved), the error table with retry guidance, andfetchWeb+windowWebFetchPagefor reading a page without a model.Changesets are single-line with doc links, and live here because the stack merges together.
Evidence
docs/agents/index.mdlists Search the Web and Browse the Web only.After: Fetch the Web sits between them; every option, error code, and export named in the guide exists in feat(agents): add web_fetch tool #2520 (checked against
index.tsandWebFetchErrorCode).oxfmt --check docs .changesetclean; typecheck → 132 projects.Merge Danger
Door: two-way
Blast Radius: none
Markdown and two changesets. The changesets cut the
agentsminor and@cloudflare/thinkpatch on merge, so this should land with, not before, the rest of the stack.