Skip to content

ToolUse

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

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:45

The name of the tool to execute.


toolUseId: string;

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

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


input: JSONValue;

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

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