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

Function toolSummary

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

Source from the content-addressed store, hash-verified

151}
152
153function toolSummary(name: string, input: Record<string, unknown>): string {
154 const verb = TOOL_VERBS[name] ?? name
155 const target =
156 (input.file_path as string) ??
157 (input.filePath as string) ??
158 (input.pattern as string) ??
159 (input.command as string | undefined)?.slice(0, 60) ??
160 (input.url as string) ??
161 (input.query as string) ??
162 ''
163 if (target) {
164 return `${verb} ${target}`
165 }
166 return verb
167}
168
169function extractActivities(
170 line: string,

Callers 1

extractActivitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected