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

Function toolFileName

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

Source from the content-addressed store, hash-verified

291 typeof value === "object" && value !== null && !Array.isArray(value);
292
293const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
294
295const fileResourceUri = (file: ToolFileValue): string =>
296 `executor-file:///${encodeURIComponent(toolFileName(file))}`;

Callers 2

fileResourceUriFunction · 0.85
toolFileSummaryLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected