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

Function toolArgSummary

apps/kimi-web/src/api/daemon/agentEventProjector.ts:259–263  ·  view source on GitHub ↗

A concise, human-readable summary of a tool call's arguments for progress * lines (e.g. a file path or shell command), instead of the full JSON blob.

(name: string, args: unknown)

Source from the content-addressed store, hash-verified

257/** A concise, human-readable summary of a tool call's arguments for progress
258 * lines (e.g. a file path or shell command), instead of the full JSON blob. */
259function toolArgSummary(name: string, args: unknown): string {
260 if (args === undefined || args === null) return '';
261 const arg = typeof args === 'string' ? args : JSON.stringify(args);
262 return toolSummary(name, arg);
263}
264
265function projectSubagentProgress(
266 state: SessionState,

Callers 1

subagentProgressTextFunction · 0.85

Calls 1

toolSummaryFunction · 0.90

Tested by

no test coverage detected