Represents a request to call a tool.
const toolCall: ToolCall = { type: "tool_call", name: "foo", args: { a: 1 }, callId: "123"}; Copy
const toolCall: ToolCall = { type: "tool_call", name: "foo", args: { a: 1 }, callId: "123"};
This represents a request to call the tool named "foo" with arguments {"a": 1} and an identifier of "123".
Arbitrary properties
The arguments to the tool call
Optional
Content block identifier, which can be either
The name of the tool being called
Readonly
Type of the content block
Represents a request to call a tool.
Example
This represents a request to call the tool named "foo" with arguments {"a": 1} and an identifier of "123".