MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toolFileSummaryLine

Function toolFileSummaryLine

packages/hosts/mcp/src/tool-server.ts:545–548  ·  view source on GitHub ↗
(file: ToolFileValue, index?: number)

Source from the content-addressed store, hash-verified

543};
544
545const toolFileSummaryLine = (file: ToolFileValue, index?: number): string => {
546 const prefix = index === undefined ? "" : `${index + 1}. `;
547 return `${prefix}${toolFileName(file)} (${file.mimeType}, ${file.byteLength} bytes)`;
548};
549
550const outputFileContent = (file: ToolFileValue): ContentBlock[] => [
551 {

Callers 1

outputFileContentFunction · 0.85

Calls 1

toolFileNameFunction · 0.85

Tested by

no test coverage detected