MCPcopy
hub / github.com/codeaashu/claude-code / getToolUseSummary

Function getToolUseSummary

src/tools/PowerShellTool/PowerShellTool.tsx:329–341  ·  view source on GitHub ↗
(input: Partial<PowerShellToolInput> | undefined)

Source from the content-addressed store, hash-verified

327 return 'PowerShell';
328 },
329 getToolUseSummary(input: Partial<PowerShellToolInput> | undefined): string | null {
330 if (!input?.command) {
331 return null;
332 }
333 const {
334 command,
335 description
336 } = input;
337 if (description) {
338 return description;
339 }
340 return truncate(command, TOOL_SUMMARY_MAX_LENGTH);
341 },
342 getActivityDescription(input: Partial<PowerShellToolInput> | undefined): string {
343 if (!input?.command) {
344 return 'Running command';

Callers

nothing calls this directly

Calls 1

truncateFunction · 0.50

Tested by

no test coverage detected