struct

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

Instance methods

name
Source
type
Source