struct

Anthropic::ToolAdditionContent

Inherits JSON::Serializable < Struct < Value < Object

Mid-conversation directive to surface a declared tool.

tool references a tool (or MCP toolset) from the request's tools[]; it is offered to the model from this point in the conversation onward. Primarily request-only; serialization and echo parsing are supported.

Constructors

for_tool(name : String, cache_control : CacheControl | Nil = nil) : self

Convenience for a locally declared tool name.

Source
new(tool : ToolChangeReference, cache_control : CacheControl | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_control
Source
tool
Source
type
Source