Class BetaManagedAgentsWebFetchToolConfigParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchToolConfigParamsConfiguration override for the web_fetch tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWebFetchToolConfigParams.BuilderA builder for BetaManagedAgentsWebFetchToolConfigParams.
public final classBetaManagedAgentsWebFetchToolConfigParams.PermissionPolicyPermission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
public final classBetaManagedAgentsWebFetchToolConfigParams.Type
-
Method Summary
Modifier and Type Method Description final Optional<List<String>>allowedDomains()Only fetch URLs whose host is one of these domains or a subdomain of one. final Optional<List<String>>blockedDomains()Never fetch URLs whose host is one of these domains or a subdomain of one. final Optional<Boolean>enabled()Whether this tool is enabled and available to Claude. final Optional<Integer>maxContentTokens()Maximum number of tokens of fetched text content to include in context per call. final Optional<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy>permissionPolicy()Permission policy for this tool. final Optional<BetaManagedAgentsWebFetchToolConfigParams.Type>type()final Optional<BetaManagedAgentsWebFetchUrlSourcesParams>urlSources()Which sources contribute URLs the tool may fetch. final JsonValue_name()Must be "web_fetch". final JsonField<List<String>>_allowedDomains()Returns the raw JSON value of allowedDomains. final JsonField<List<String>>_blockedDomains()Returns the raw JSON value of blockedDomains. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<Integer>_maxContentTokens()Returns the raw JSON value of maxContentTokens. final JsonField<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy>_permissionPolicy()Returns the raw JSON value of permissionPolicy. final JsonField<BetaManagedAgentsWebFetchToolConfigParams.Type>_type()Returns the raw JSON value of type. final JsonField<BetaManagedAgentsWebFetchUrlSourcesParams>_urlSources()Returns the raw JSON value of urlSources. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWebFetchToolConfigParams.BuildertoBuilder()final BetaManagedAgentsWebFetchToolConfigParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWebFetchToolConfigParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWebFetchToolConfigParams. -
-
Method Detail
-
allowedDomains
final Optional<List<String>> allowedDomains()
Only fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with blocked_domains.
-
blockedDomains
final Optional<List<String>> blockedDomains()
Never fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with allowed_domains.
-
enabled
final Optional<Boolean> enabled()
Whether this tool is enabled and available to Claude. Overrides the default_config setting.
-
maxContentTokens
final Optional<Integer> maxContentTokens()
Maximum number of tokens of fetched text content to include in context per call. Does not apply to binary content such as PDFs.
-
permissionPolicy
final Optional<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy> permissionPolicy()
Permission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
-
type
final Optional<BetaManagedAgentsWebFetchToolConfigParams.Type> type()
-
urlSources
final Optional<BetaManagedAgentsWebFetchUrlSourcesParams> urlSources()
Which sources contribute URLs the tool may fetch. Omit to allow every source.
-
_name
final JsonValue _name()
Must be "web_fetch".
Expected to always return the following:
JsonValue.from("web_fetch")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_allowedDomains
final JsonField<List<String>> _allowedDomains()
Returns the raw JSON value of allowedDomains.
Unlike allowedDomains, this method doesn't throw if the JSON field has an unexpected type.
-
_blockedDomains
final JsonField<List<String>> _blockedDomains()
Returns the raw JSON value of blockedDomains.
Unlike blockedDomains, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_maxContentTokens
final JsonField<Integer> _maxContentTokens()
Returns the raw JSON value of maxContentTokens.
Unlike maxContentTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_permissionPolicy
final JsonField<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy> _permissionPolicy()
Returns the raw JSON value of permissionPolicy.
Unlike permissionPolicy, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsWebFetchToolConfigParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_urlSources
final JsonField<BetaManagedAgentsWebFetchUrlSourcesParams> _urlSources()
Returns the raw JSON value of urlSources.
Unlike urlSources, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWebFetchToolConfigParams.Builder toBuilder()
-
validate
final BetaManagedAgentsWebFetchToolConfigParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsWebFetchToolConfigParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWebFetchToolConfigParams.
-
-
-
-