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

Function isFileOutputItem

packages/hosts/mcp/src/tool-server.ts:374–377  ·  view source on GitHub ↗
(
  item: ExecuteOutputItem,
)

Source from the content-addressed store, hash-verified

372];
373
374const isFileOutputItem = (
375 item: ExecuteOutputItem,
376): item is { readonly type: "file"; readonly file: ToolFileValue } =>
377 isRecord(item) && item.type === "file" && isToolFile(item.file);
378
379const isMcpContentBlock = (value: unknown): value is ContentBlock =>
380 ContentBlockSchema.safeParse(value).success;

Callers 1

outputItemContentFunction · 0.85

Calls 2

isToolFileFunction · 0.90
isRecordFunction · 0.70

Tested by

no test coverage detected