AnthropicTips

Managed Agents web_fetch now refuses URLs the session hasn't seen
If your agent suddenly gets url_not_in_prior_context or url_not_allowed, here is what changed on Oct 7 and how to fix it.
If a Claude Managed Agents agent stopped fetching pages around Oct 7, the cause is likely a deliberate change, not an outage. Send the URL in a user message, or add the host to allowed_hosts.
What changed#
After (Oct 7): it fetches only URLs that already appeared in the session, such as a user message, a web_search result, or a page fetched earlier. Anthropic says this "reduces the risk of data exfiltration."
Also on Oct 7: with limited networking, allowed_hosts now applies to web_search and web_fetch.
How to fix it#
- Error
url_not_in_prior_context: put the URL in the text of auser.messageevent. A URL only in the system prompt, an attached document, orbash,reador MCP output does not count. - Error
url_not_allowed: add the host toallowed_hosts. Entries match one exact host unless they start with*., sodocs.example.comis not covered byexample.com. - Session creation fails with a 400: an
allowed_domainsentry on a web tool is outsideallowed_hosts. Add the host or drop the entry. - Empty search results: with
limitednetworking and an emptyallowed_hosts, neither tool returns anything.
Here are the URLs you may fetch for this task: <paste URLs>. Fetch each one and summarize it.
Good to know#
allow_package_managersandallow_mcp_serversadd no hosts for these tools.- Adding a host to
allowed_hostsalso opens it to the sandbox. unrestrictednetworking and self-hosted environments are not limited.
Sources#
- https://docs.anthropic.com/en/release-notes/overview (Oct 7 entries, checked 2026-10-12 10:44 ET)
Last checked: 2026-10-12