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

Function isToolResultMessage

src/utils/messages.ts:2402–2409  ·  view source on GitHub ↗
(msg: Message)

Source from the content-addressed store, hash-verified

2400}
2401
2402function isToolResultMessage(msg: Message): boolean {
2403 if (msg.type !== 'user') {
2404 return false
2405 }
2406 const content = msg.message.content
2407 if (typeof content === 'string') return false
2408 return content.some(block => block.type === 'tool_result')
2409}
2410
2411export function mergeUserMessages(a: UserMessage, b: UserMessage): UserMessage {
2412 const lastContent = normalizeUserTextContent(a.message.content)

Callers 1

normalizeMessagesForAPIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected