MCPcopy Index your code
hub / github.com/coder/mux / formatDisplayOnlyFileLabel

Function formatDisplayOnlyFileLabel

src/node/services/tools/attach_file.ts:10–12  ·  view source on GitHub ↗
(file: { filename?: string; mediaType: string })

Source from the content-addressed store, hash-verified

8import { readAttachFileFromPath } from "@/node/utils/attachments/readAttachmentFromPath";
9
10function formatDisplayOnlyFileLabel(file: { filename?: string; mediaType: string }): string {
11 return file.filename != null ? `${file.filename} (${file.mediaType})` : file.mediaType;
12}
13
14export const createAttachFileTool: ToolFactory = (config: ToolConfiguration) => {
15 return tool({

Callers 1

createAttachFileToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected