MCPcopy Create free account
hub / github.com/Noumena-Network/code / preview

Function preview

src/tools/REPLTool/javascriptReplFactory.tsx:142–147  ·  view source on GitHub ↗
(value: string, maxChars: number = PREVIEW_LIMIT)

Source from the content-addressed store, hash-verified

140}
141
142function preview(value: string, maxChars: number = PREVIEW_LIMIT): string {
143 if (value.length <= maxChars) {
144 return value
145 }
146 return `${value.slice(0, maxChars)}\n...[truncated ${value.length - maxChars} chars]`
147}
148
149function formatConsoleArgs(args: unknown[]): string {
150 return args

Callers 4

formatToolCallSummaryFunction · 0.70
formatModelToolResultFunction · 0.70
renderProgressHintFunction · 0.70
renderToolUseMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected