struct

Anthropic::ToolChangeToolReference

Inherits JSON::Serializable < Struct < Value < Object

Reference to a single tool declared directly in the request's tools[].

Used by mid-conversation tool_addition / tool_removal blocks. Does not accept the composed {server}_{name} form assigned to MCP-resolved tools — use ToolChangeMCPToolReference or ToolChangeMCPToolsetReference.

Distinct from ToolReferenceContent (tool search results), which uses tool_name rather than name.

Constructors

new(name : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

name
Source
type
Source