Managed Agents can restrict web search and web fetch to allowed domains
Managed Agents `configs` entries for the agent_toolset_20260401 web tools now accept allowed_domains and blocked_domains, plus max_content_tokens for web_fetch and user_location for web_search.
What does this mean for me?
Plan for it
Engineering leadership
Cost, risk, timeline, team impact Plan for itYou can now confine agent web access to an approved domain list, which is often what security review asks for. Worth a short task to add allowlists to production agents.
Engineer
What to change, what breaks, what to test Plan for itAdd `allowed_domains` or `blocked_domains` to the `web_search` and `web_fetch` entries in the `agent_toolset_20260401` `configs` array; also available are `max_content_tokens` (web_fetch) and `user_location` (web_search). Expect compile errors after an SDK upgrade as `configs` entries resolve to per-tool types.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is a developer configuration option and does not affect the Claude apps.
Claude Managed Agents gained per-tool egress controls. On the agent_toolset_20260401 configs array, the web_search and web_fetch entries accept allowed_domains or blocked_domains to limit which sites an agent can reach. web_fetch additionally accepts max_content_tokens and web_search accepts user_location.
Each configs entry is identified by its name and typed by an optional type. Requests that pass only name, enabled, and permission_policy continue to work. In the typed SDKs, configs entries now resolve to per-tool types, which is the part most likely to surface as a compile-time change when upgrading an SDK.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
allowed_domains | added | no | |
blocked_domains | added | no | |
max_content_tokens | added | no | |
user_location | added | no |
Topics: Agents and tool use