Skip to content

ToolUse

Defined in: src/tools/types.ts:36

Represents a tool usage request from the model. The model generates this when it wants to use a tool.

name: string;

Defined in: src/tools/types.ts:40

The name of the tool to execute.


toolUseId: string;

Defined in: src/tools/types.ts:46

Unique identifier for this tool use instance. Used to match tool results back to their requests.


input: JSONValue;

Defined in: src/tools/types.ts:52

The input parameters for the tool. Must be JSON-serializable.