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

Function isTextBlock

source code/utils/mcpValidation.ts:53–55  ·  view source on GitHub ↗
(block: ContentBlockParam)

Source from the content-addressed store, hash-verified

51export type MCPToolResult = string | ContentBlockParam[] | undefined
52
53function isTextBlock(block: ContentBlockParam): block is TextBlockParam {
54 return block.type === 'text'
55}
56
57function isImageBlock(block: ContentBlockParam): block is ImageBlockParam {
58 return block.type === 'image'

Callers 2

getContentSizeEstimateFunction · 0.70
truncateContentBlocksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected