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

Function contentContainsImages

src/services/mcp/client.ts:2713–2718  ·  view source on GitHub ↗

* Check if MCP content contains any image blocks. * Used to decide whether to persist to file (images should use truncation instead * to preserve image compression and viewability).

(content: MCPToolResult)

Source from the content-addressed store, hash-verified

2711 * to preserve image compression and viewability).
2712 */
2713function contentContainsImages(content: MCPToolResult): boolean {
2714 if (!content || typeof content === 'string') {
2715 return false
2716 }
2717 return content.some(block => block.type === 'image')
2718}
2719
2720export async function processMCPResult(
2721 result: unknown,

Callers 1

processMCPResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected