Skip to main content
Fold one tool_call / tool_call_update patch — or a permission request’s toolCall reference, which has the same shape — into a merged ToolCall snapshot. Returns undefined when the patch carries no toolCallId.

Parameters

undefined | ToolCall
required
Type: ToolCall
Record<string, unknown>
required

Returns

ToolCall