Skip to content

Function: toolExecutionStart()

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / toolExecutionStart

toolExecutionStart(toolCallId, toolName, timestamp, index): StreamEvent

Defined in: src/types/stream.ts:413

Creates a tool execution start stream event.

string

Unique identifier for the tool call

string

Name of the tool being executed

number

Start timestamp in milliseconds

number = 0

Content block index (default: 0)

StreamEvent

A tool_execution_start StreamEvent