Anthropic::WebSearchTool20260318
Inherits JSON::Serializable < Anthropic::ServerTool < JSON::Serializable < Struct < Value < Object
Web search tool (March 2026 variant).
Adds response_inclusion ("full" or "excluded") on top of the 20260209
variant, controlling how search result blocks are surfaced when the tool is
consumed by a completed code_execution call in the same turn.
Constructors
new(pull : JSON::PullParser)
Web search tool (March 2026 variant).
Adds response_inclusion ("full" or "excluded") on top of the 20260209
variant, controlling how search result blocks are surfaced when the tool is
consumed by a completed code_execution call in the same turn.
new(allowed_callers : Array(String) | Nil = nil, allowed_domains : Array(String) | Nil = nil, blocked_domains : Array(String) | Nil = nil, cache_control : CacheControl | Nil = nil, defer_loading : Bool | Nil = nil, max_uses : Int32 | Nil = nil, response_inclusion : String | Nil = nil, strict : Bool | Nil = nil, user_location : UserLocation | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
allowed_callers
Sourceallowed_domains
Sourceblocked_domains
Sourcecache_control
Sourcedefer_loading
Sourcemax_uses
Sourcename
Sourceresponse_inclusion
Sourcestrict
Sourcetype
Sourceuser_location
Source