Skip to content

Interface: ToolCall

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / ToolCall

Defined in: src/types/tool.ts:45

Tool call requested by the model.

Represents a single function call request from the LLM, including the tool name and parsed arguments.

const toolCall: ToolCall = {
toolCallId: 'call_abc123',
toolName: 'get_weather',
arguments: { location: 'San Francisco', units: 'celsius' }
};

arguments: Record<string, unknown>

Defined in: src/types/tool.ts:53

Parsed arguments for the tool call


toolCallId: string

Defined in: src/types/tool.ts:47

Unique identifier for this tool call, used to match results


toolName: string

Defined in: src/types/tool.ts:50

Name of the tool being called