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

Function isMalformedBase64Image

src/bridge/inboundMessages.ts:75–80  ·  view source on GitHub ↗
(
  block: ContentBlockParam,
)

Source from the content-addressed store, hash-verified

73}
74
75function isMalformedBase64Image(
76 block: ContentBlockParam,
77): block is ImageBlockParam & { source: Base64ImageSource } {
78 if (block.type !== 'image' || block.source?.type !== 'base64') return false
79 return !(block.source as unknown as Record<string, unknown>).media_type
80}
81
82

Callers 1

normalizeImageBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected