MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / toolTrailLabel

Function toolTrailLabel

ui-tui/src/lib/text.ts:191–196  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

189export const stripTrailingPasteNewlines = (text: string) => (/[^\n]/.test(text) ? text.replace(/\n+$/, '') : text)
190
191export const toolTrailLabel = (name: string) =>
192 name
193 .split('_')
194 .filter(Boolean)
195 .map(p => p[0]!.toUpperCase() + p.slice(1))
196 .join(' ') || name
197
198export const formatToolCall = (name: string, context = '') => {
199 const label = toolTrailLabel(name)

Callers 5

thinking.tsxFile · 0.85
formatToolCallFunction · 0.85
completeToolMethod · 0.85
useMainAppFunction · 0.85
tickFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected