MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / extractTextFromValue

Function extractTextFromValue

src/utils/messageQueueManager.ts:384–386  ·  view source on GitHub ↗

* Extract text from a queued command value. * For strings, returns the string. * For ContentBlockParam[], extracts text from text blocks.

(value: string | ContentBlockParam[])

Source from the content-addressed store, hash-verified

382 * For ContentBlockParam[], extracts text from text blocks.
383 */
384function extractTextFromValue(value: string | ContentBlockParam[]): string {
385 return typeof value === 'string' ? value : extractTextContent(value, '\n')
386}
387
388/**
389 * Extract images from ContentBlockParam[] and convert to PastedContent format.

Callers 1

popAllEditableFunction · 0.85

Calls 1

extractTextContentFunction · 0.85

Tested by

no test coverage detected