AnthropicToolUseBlock
A tool use content block returned in an assistant message when the model wants to invoke a tool.
Class Diagram
Section titled “Class Diagram”---
title: AnthropicToolUseBlock
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class AnthropicToolUseBlock {
+string type
+string id
+string name
+dictionary input
}
Yaml Example
Section titled “Yaml Example”id: toolu_01A09q90qw90lq917835lq9name: get_weatherinput: city: ParisProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| type | string | The content block type |
| id | string | Unique identifier for this tool invocation |
| name | string | The name of the tool to invoke |
| input | dictionary | The JSON arguments for the tool call |