struct

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.

Source
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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_callers
Source
allowed_domains
Source
blocked_domains
Source
cache_control
Source
defer_loading
Source
max_uses
Source
name
Source
response_inclusion
Source
strict
Source
type
Source
user_location
Source