Class BetaRequestToolAdditionBlock

  • All Implemented Interfaces:

    
    public final class BetaRequestToolAdditionBlock
    
                        

    Mid-conversation directive to make a tool available.

    `tool` is a reference to a tool (or MCP toolset) declared in the request's `tools`. Under the `inline-tools-2026-09-15` beta it may instead be a reference to a tool defined earlier in `messages`, or a `tool_definition` object that carries an inline tool definition in `definition` (the same object a `tools` entry holds). An `mcp_toolset` definition also requires the `mcp-client-2026-09-15` beta. The tool is offered to the model from this point in the conversation onward.