MCPcopy
hub / github.com/MiniMax-AI/cli / extractText

Function extractText

src/commands/text/chat.ts:149–154  ·  view source on GitHub ↗
(content: ContentBlock[])

Source from the content-addressed store, hash-verified

147}
148
149function extractText(content: ContentBlock[]): string {
150 return content
151 .filter((b): b is Extract<ContentBlock, { type: 'text' }> => b.type === 'text')
152 .map(b => b.text)
153 .join('');
154}
155
156export default defineCommand({
157 name: 'text chat',

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected