MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / c

Function c

apps/kimi-web/src/lib/toolMeta.ts:185–185  ·  view source on GitHub ↗
(s: string, max = SUMMARY_MAX)

Source from the content-addressed store, hash-verified

183export function toolSummary(name: string, arg: string, full = false): string {
184 // Local clip that becomes a no-op (trim only) in `full` mode.
185 const c = (s: string, max = SUMMARY_MAX): string => (full ? s.trim() : clip(s, max));
186 try {
187 const d = parseArg(arg);
188 // Empty argument (e.g. `{}`): keep it OUT of the collapsed header title, but

Callers 2

fallbackFunction · 0.85
toolSummaryFunction · 0.85

Calls 1

clipFunction · 0.85

Tested by

no test coverage detected