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

Function renderToolUseMessage

src/tools/REPLTool/javascriptReplFactory.tsx:432–438  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

430 return config.isTransparentWrapper
431 },
432 renderToolUseMessage(input) {
433 const compact = input.code.replace(/\s+/g, ' ').trim()
434 if (!compact) {
435 return 'script'
436 }
437 return preview(compact, 120)
438 },
439 renderToolUseProgressMessage(progressMessages) {
440 const latest = [...progressMessages]
441 .reverse()

Callers

nothing calls this directly

Calls 1

previewFunction · 0.70

Tested by

no test coverage detected