MCPcopy Create free account
hub / github.com/codeaashu/claude-code / createToolUseSummaryMessage

Function createToolUseSummaryMessage

src/utils/messages.ts:5105–5116  ·  view source on GitHub ↗
(
  summary: string,
  precedingToolUseIds: string[],
)

Source from the content-addressed store, hash-verified

5103 * Tool use summaries provide human-readable progress updates after tool batches complete.
5104 */
5105export function createToolUseSummaryMessage(
5106 summary: string,
5107 precedingToolUseIds: string[],
5108): ToolUseSummaryMessage {
5109 return {
5110 type: 'tool_use_summary',
5111 summary,
5112 precedingToolUseIds,
5113 uuid: randomUUID(),
5114 timestamp: new Date().toISOString(),
5115 }
5116}
5117
5118/**
5119 * Defensive validation: ensure tool_use/tool_result pairing is correct.

Callers 1

queryLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected