ReadonlytypeDiscriminator for tool use content.
ReadonlynameThe name of the tool to execute.
ReadonlytoolUnique identifier for this tool use instance.
ReadonlyinputThe input parameters for the tool. This can be any JSON-serializable value.
Optional ReadonlyreasoningReasoning signature from thinking models (e.g., Gemini). Must be preserved and sent back to the model for multi-turn tool use.
Serializes the ToolUseBlock to a JSON-compatible ContentBlockData object. Called automatically by JSON.stringify().
StaticfromCreates a ToolUseBlock instance from its wrapped data format.
Wrapped ToolUseBlockData to deserialize
ToolUseBlock instance
Tool use content block.