Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

tools-web-restrictions changedmanaged-agents/tools-web-restrictions

Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+31added
Lines−31removed
From line 404 where the diff opens
First seen 6 Oct 2026 this site's first read of the page
Recorded edits22to this page, all time

The whole hunk

from line 404, old and new numbered
/
lines
from line 404
404404 
405405In addition to `enabled` (csharp, go: `Enabled`) and `permission_policy` (java, php: `permissionPolicy`; csharp, go: `PermissionPolicy`), the web tool entries accept the following settings:
406406 
407| Setting | Applies to | Description |
408| ------------------------------------------------------------------------------------ | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
409| `allowed_domains` (java, php: `allowedDomains`; csharp, go: `AllowedDomains`) | `web_search`, `web_fetch` | The only hosts the tool can reach. See [Domain list rules](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#domain-list-rules). |
410| `blocked_domains` (java, php: `blockedDomains`; csharp, go: `BlockedDomains`) | `web_search`, `web_fetch` | Hosts the tool cannot reach. See [Domain list rules](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#domain-list-rules). |
411| `max_content_tokens` (java, php: `maxContentTokens`; csharp, go: `MaxContentTokens`) | `web_fetch` | Caps the amount of fetched page content included in the context. Must be a positive integer. See [content limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool#content-limits). |
412| `user_location` (java, php: `userLocation`; csharp, go: `UserLocation`) | `web_search` | Localizes search results. An object with the same fields as the Messages API [`user_location`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool#localization) parameter. |
407| Setting | Applies to | Description |
408| ----- | ----- | ----- |
409| `allowed_domains` (java, php: `allowedDomains`; csharp, go: `AllowedDomains`) | `web_search`, `web_fetch` | The only hosts the tool can reach. See [Domain list rules](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#domain-list-rules). |
410| `blocked_domains` (java, php: `blockedDomains`; csharp, go: `BlockedDomains`) | `web_search`, `web_fetch` | Hosts the tool cannot reach. See [Domain list rules](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#domain-list-rules). |
411| `max_content_tokens` (java, php: `maxContentTokens`; csharp, go: `MaxContentTokens`) | `web_fetch` | Caps the amount of fetched page content included in the context. Must be a positive integer. See [content limits](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool#content-limits). |
412| `user_location` (java, php: `userLocation`; csharp, go: `UserLocation`) | `web_search` | Localizes search results. An object with the same fields as the Messages API [`user_location`](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool#localization) parameter. |
413413 
414414For the types the SDK uses for these entries, see [Config entry types in the SDKs](https://platform.claude.com/docs/en/managed-agents/tools#config-entry-types-in-the-sdks).
415415 
from line 438
438438 
439439Each domain is a registrable domain name, or a subdomain of one, written as a plain hostname. It can contain ASCII letters, digits, hyphens, underscores, and dots. A single trailing `/` is ignored. A `web_search` domain can also carry a path, as [Path suffixes on web search domains](https://platform.claude.com/docs/en/managed-agents/tools-web-restrictions#path-suffixes-on-web-search-domains) describes.
440440 
441| Not accepted | Example | Use instead |
442| ------------------------------------------------------------------------------ | ------------------------ | ------------------------------------- |
443| A scheme | `https://example.com` | `example.com` |
444| A port | `example.com:443` | `example.com` |
445| A wildcard | `*.example.com` | `example.com` |
446| A path on a `web_fetch` domain | `example.com/*` | `example.com` |
447| An IP address in any form, whether IPv4, IPv6, bracketed, or numeric shorthand | `127.1` | The site’s domain name |
448| A bare top-level domain or registry suffix | `com`, `co.uk`, `gov.uk` | A full domain such as `example.co.uk` |
449| A single-label name | `intranet` | A full domain such as `example.co.uk` |
450| Non-ASCII characters, as in an internationalized domain name | | The `xn--` (Punycode) form |
441| Not accepted | Example | Use instead |
442| ----- | ----- | ----- |
443| A scheme | `https://example.com` | `example.com` |
444| A port | `example.com:443` | `example.com` |
445| A wildcard | `*.example.com` | `example.com` |
446| A path on a `web_fetch` domain | `example.com/*` | `example.com` |
447| An IP address in any form, whether IPv4, IPv6, bracketed, or numeric shorthand | `127.1` | The site’s domain name |
448| A bare top-level domain or registry suffix | `com`, `co.uk`, `gov.uk` | A full domain such as `example.co.uk` |
449| A single-label name | `intranet` | A full domain such as `example.co.uk` |
450| Non-ASCII characters, as in an internationalized domain name | | The `xn--` (Punycode) form |
451451 
452452The API also rejects a domain that contains credentials or whitespace, or that has a label starting or ending with a hyphen. It rejects `localhost` and hosts ending in `.localhost`, `.local`, `.internal`, `.localdomain`, or `.invalid` too.
453453 
from line 463
463463 
464464The API rejects format and limit violations with a 400 `invalid_request_error`:
465465 
466| Violation | Error message |
467| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
468| An entry sets both lists. | Includes `Only one of allowed_domains or blocked_domains may be set.` |
469| A list is empty. | Includes `allowed_domains: Empty list of domains is ambiguous. Provide at least one domain or null.` |
466| Violation | Error message |
467| ----- | ----- |
468| An entry sets both lists. | Includes `Only one of allowed_domains or blocked_domains may be set.` |
469| A list is empty. | Includes `allowed_domains: Empty list of domains is ambiguous. Provide at least one domain or null.` |
470470| A domain breaks a format rule. | Names the domain’s list and zero-based position, as in `allowed_domains.0: IP addresses are not supported; provide a plain hostname like "example.com"` |
471471 
472472On the same requests, the API also rejects three settings that depend on the search and fetch providers:
from line 497
497497 
498498The settings combine as follows:
499499 
500| Setting | How it combines |
501| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
502| `allowed_domains` | The tool can reach a host only if every list covers it. |
503| `blocked_domains` | The lists add together. |
500| Setting | How it combines |
501| ----- | ----- |
502| `allowed_domains` | The tool can reach a host only if every list covers it. |
503| `blocked_domains` | The lists add together. |
504504| `max_content_tokens`, `user_location` | Not combined. A thread uses the value from its own tool configuration if set. Otherwise it uses the value from the agent that called it, and otherwise the current configuration of the session’s agent. |
505505 
506506A listed agent can therefore narrow what a tool reaches but never widen it:
from line 560
560560* Availability: Available
561561* Usage: Set `allowed_domains` or `blocked_domains` on the `web_search` or `web_fetch` tool in the request.
562562 
563| Status | Cloud platforms |
564| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
563| Status | Cloud platforms |
564| ----- | ----- |
565565| Available | Claude API, [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
566566 
567567#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 569
569569* Availability: Available
570570* Usage: Set the same fields on the `web_search` and `web_fetch` entries of the agent toolset. Unlike the Messages API, each list holds at most 64 ASCII domains, and `web_fetch` domains cannot include a path.
571571 
572| Status | Cloud platforms | Models |
573| ------ | ----------------------- | ----------------------------------------------------------------- |
574| Beta | All supported platforms | [All models](https://platform.claude.com/docs/en/models/overview) |
572| Status | Cloud platforms | Models |
573| ----- | ----- | ----- |
574| Beta | All supported platforms | [All models](https://platform.claude.com/docs/en/models/overview) |
575575 
576576### Required beta headers
577577 
from line 579
579579 
580580Beta headers allow you to access experimental features and new model capabilities before they become part of the standard API.
581581 
582| Header | APIs |
583| --------------------------- | ----------------------------------------------------------------------------- |
582| Header | APIs |
583| ----- | ----- |
584584| `managed-agents-2026-04-01` | [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) |
585585 
Feedback