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

Function isFileOutputItem

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

Source from the content-addressed store, hash-verified

649];
650
651const isFileOutputItem = (
652 item: ExecuteOutputItem,
653): item is { readonly type: "file"; readonly file: ToolFileValue } =>
654 isRecord(item) && item.type === "file" && isToolFile(item.file);
655
656const isMcpContentBlock = (value: unknown): value is ContentBlock =>
657 ContentBlockSchema.safeParse(value).success;

Callers 1

outputItemContentFunction · 0.85

Calls 2

isToolFileFunction · 0.90
isRecordFunction · 0.70

Tested by

no test coverage detected