Interface: ToolCall
@providerprotocol/ai / @providerprotocol/ai / ToolCall
Interface: ToolCall
Section titled “Interface: 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.
Example
Section titled “Example”const toolCall: ToolCall = { toolCallId: 'call_abc123', toolName: 'get_weather', arguments: { location: 'San Francisco', units: 'celsius' }};Properties
Section titled “Properties”arguments
Section titled “arguments”arguments:
Record<string,unknown>
Defined in: src/types/tool.ts:53
Parsed arguments for the tool call
toolCallId
Section titled “toolCallId”toolCallId:
string
Defined in: src/types/tool.ts:47
Unique identifier for this tool call, used to match results
toolName
Section titled “toolName”toolName:
string
Defined in: src/types/tool.ts:50
Name of the tool being called