MCPcopy Index your code
hub / github.com/codeaashu/claude-code / toolSummary

Function toolSummary

src/bridge/sessionRunner.ts:91–105  ·  view source on GitHub ↗
(name: string, input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

89}
90
91function toolSummary(name: string, input: Record<string, unknown>): string {
92 const verb = TOOL_VERBS[name] ?? name
93 const target =
94 (input.file_path as string) ??
95 (input.filePath as string) ??
96 (input.pattern as string) ??
97 (input.command as string | undefined)?.slice(0, 60) ??
98 (input.url as string) ??
99 (input.query as string) ??
100 ''
101 if (target) {
102 return `${verb} ${target}`
103 }
104 return verb
105}
106
107function extractActivities(
108 line: string,

Callers 1

extractActivitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected