Skip to content

AnthropicToolUseBlock

A tool use content block returned in an assistant message when the model wants to invoke a tool.

---
title: AnthropicToolUseBlock
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class AnthropicToolUseBlock {
        +string type
        +string id
        +string name
        +dictionary input
    }
id: toolu_01A09q90qw90lq917835lq9
name: get_weather
input:
city: Paris
NameTypeDescription
typestringThe content block type
idstringUnique identifier for this tool invocation
namestringThe name of the tool to invoke
inputdictionaryThe JSON arguments for the tool call