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

Function getToolUseSummary

src/tools/BashTool/BashTool.tsx:504–516  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

502 return isEnvTruthy(process.env.CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR) && shouldUseSandbox(input) ? 'SandboxedBash' : 'Bash';
503 },
504 getToolUseSummary(input) {
505 if (!input?.command) {
506 return null;
507 }
508 const {
509 command,
510 description
511 } = input;
512 if (description) {
513 return description;
514 }
515 return truncate(command, TOOL_SUMMARY_MAX_LENGTH);
516 },
517 getActivityDescription(input) {
518 if (!input?.command) {
519 return 'Running command';

Callers

nothing calls this directly

Calls 1

truncateFunction · 0.50

Tested by

no test coverage detected