MCPcopy Create free account
hub / github.com/codeaashu/claude-code / toBlocks

Function toBlocks

src/cli/print.ts:419–421  ·  view source on GitHub ↗
(v: PromptValue)

Source from the content-addressed store, hash-verified

417type PromptValue = string | ContentBlockParam[]
418
419function toBlocks(v: PromptValue): ContentBlockParam[] {
420 return typeof v === 'string' ? [{ type: 'text', text: v }] : v
421}
422
423/**
424 * Join prompt values from multiple queued commands into one. Strings are

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected