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

Function isFileOutputItem

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

Source from the content-addressed store, hash-verified

556];
557
558const isFileOutputItem = (
559 item: ExecuteOutputItem,
560): item is { readonly type: "file"; readonly file: ToolFileValue } =>
561 isRecord(item) && item.type === "file" && isToolFile(item.file);
562
563const isMcpContentBlock = (value: unknown): value is ContentBlock =>
564 ContentBlockSchema.safeParse(value).success;

Callers 1

outputItemContentFunction · 0.85

Calls 2

isToolFileFunction · 0.90
isRecordFunction · 0.70

Tested by

no test coverage detected