MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasImageBlock

Function hasImageBlock

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

Source from the content-addressed store, hash-verified

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected