MCPcopy Create free account
hub / github.com/block/buzz / buildShellContent

Function buildShellContent

desktop/src/features/agents/ui/agentSessionToolSummary.ts:117–131  ·  view source on GitHub ↗
(
  item: ToolItem,
  descriptor: AgentActivityDescriptor,
)

Source from the content-addressed store, hash-verified

115}
116
117function buildShellContent(
118 item: ToolItem,
119 descriptor: AgentActivityDescriptor,
120): string | null {
121 const command = getToolString(item.args, ["command"]);
122 if (!command) {
123 return null;
124 }
125
126 if (descriptor.renderClass === "shell" || descriptor.source === "shell") {
127 return command;
128 }
129
130 return null;
131}

Callers 1

buildCompactToolSummaryFunction · 0.85

Calls 1

getToolStringFunction · 0.90

Tested by

no test coverage detected