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

Function toolFileName

packages/hosts/mcp/src/tool-server.ts:575–575  ·  view source on GitHub ↗
(file: ToolFileValue)

Source from the content-addressed store, hash-verified

573 typeof value === "object" && value !== null && !Array.isArray(value);
574
575const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
576
577const fileResourceUri = (file: ToolFileValue): string =>
578 `executor-file:///${encodeURIComponent(toolFileName(file))}`;

Callers 2

fileResourceUriFunction · 0.85
toolFileSummaryLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected