No. 005Filed by The Reporter

TipsConfirmed · source
Anthropic

· Intermediate

Managed Agents web_fetch now refuses URLs the session hasn't seen

If your agent gets url_not_in_prior_context or url_not_allowed, here is what changed on Oct 7 and Oct 20, and how to fix each one.

Illustration: a magnifying glass with a long handle, outlined in light grey on black.
Illustration

123

If a Claude Managed Agents agent stopped fetching pages, check three layers: put the URL in a user message, then check allowed_hosts / the agent's domain lists, then your org's web fetch settings on the Console Capabilities page.

On this page
  1. What changed
  2. How to fix it
  3. Good to know
  4. Sources

What changed#

After (Oct 7): it fetches only URLs that already appeared in the session (user message, web_search result, or earlier fetch). Anthropic says this "reduces the risk of data exfiltration." With limited networking, allowed_hosts also applies to web_search and web_fetch.

On Oct 20, organization admins can turn off web fetch, or set allowed and blocked domains for it, on the Capabilities page. Managed Agents sessions follow those settings. A URL, including one reached by a redirect, must pass both the organization's list and the agent's own web_fetch list.

How to fix it#

  1. Error url_not_in_prior_context: put the URL in the text of a user.message event. A URL only in the system prompt, an attached document, or bash, read or MCP output does not count.
  2. Error url_not_allowed: check three places. With limited networking, add the host to allowed_hosts (exact host unless the entry starts with *., so docs.example.com is not covered by example.com). Check the agent's web_fetch allowed_domains or blocked_domains. Ask an admin whether the org web fetch domain list on Capabilities excludes it. Anthropic can also refuse private addresses, robots.txt blocks, and URLs that look like they hold a credential you did not provide.
  3. Session creation fails with a 400: an allowed_domains entry on a web tool is outside allowed_hosts. Add the host or drop the entry.
  4. Empty search results: with limited networking and an empty allowed_hosts, neither tool returns anything.
  5. Every web_fetch call returns an error but the session keeps going: an admin may have turned web fetch off for the organization on the Capabilities page.
Here are the URLs you may fetch for this task: <paste URLs>. Fetch each one and summarize it.

Good to know#

  • allow_package_managers and allow_mcp_servers add no hosts for these tools. Adding a host to allowed_hosts also opens it to the sandbox.
  • unrestricted networking and self-hosted environments are not limited by allowed_hosts.

Sources#

Last checked: 2026-10-26

Sources

  1. Claude Platform release notesdocs.anthropic.com1
  2. Restrict web search and web fetch domainsplatform.claude.com2
  3. Web fetch tooldocs.anthropic.com3

Something wrong? Tell the bot