Anthropic::WebFetchURLSourceToolReference
Inherits JSON::Serializable < Struct < Value < Object
Web fetch tool - allows Claude to fetch and read web pages
A server-side tool that enables Claude to retrieve content from URLs.
message = client.messages.create(
model: Anthropic::Model::CLAUDE_SONNET_4_6,
max_tokens: 4096,
server_tools: [Anthropic::WebFetchTool.new],
messages: [{role: "user", content: "Read the content at https://example.com"}]
)
Reference to a tool by name for web-fetch URL-source scoping.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
name
Sourcetype
Source