MCPcopy
hub / github.com/codeaashu/claude-code / hasImageBlock

Function hasImageBlock

src/utils/toolResultStorage.ts:507–516  ·  view source on GitHub ↗
(
  content: NonNullable<ToolResultBlockParam['content']>,
)

Source from the content-addressed store, hash-verified

505}
506
507function hasImageBlock(
508 content: NonNullable<ToolResultBlockParam['content']>,
509): boolean {
510 return (
511 Array.isArray(content) &&
512 content.some(
513 b => typeof b === 'object' && 'type' in b && b.type === 'image',
514 )
515 )
516}
517
518function contentSize(
519 content: NonNullable<ToolResultBlockParam['content']>,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected