MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isToolResultBlock

Function isToolResultBlock

src/utils/attachments.ts:2432–2439  ·  view source on GitHub ↗
(b: unknown)

Source from the content-addressed store, hash-verified

2430}
2431
2432function isToolResultBlock(b: unknown): b is ToolResultBlock {
2433 return (
2434 typeof b === 'object' &&
2435 b !== null &&
2436 (b as ToolResultBlock).type === 'tool_result' &&
2437 typeof (b as ToolResultBlock).tool_use_id === 'string'
2438 )
2439}
2440
2441/**
2442 * Check whether a user message's content contains tool_result blocks.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected