Function: toolCallDelta()
@providerprotocol/ai / @providerprotocol/ai / toolCallDelta
Function: toolCallDelta()
Section titled “Function: toolCallDelta()”toolCallDelta(
toolCallId,toolName,argumentsJson,index):StreamEvent
Defined in: src/types/stream.ts:322
Creates a tool call delta stream event.
Parameters
Section titled “Parameters”toolCallId
Section titled “toolCallId”string
Unique identifier for the tool call
toolName
Section titled “toolName”string
Name of the tool being called
argumentsJson
Section titled “argumentsJson”string
Incremental JSON arguments string
number = 0
Content block index (default: 0)
Returns
Section titled “Returns”A tool_call_delta StreamEvent