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

Function isFileOutputItem

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

Source from the content-addressed store, hash-verified

411];
412
413const isFileOutputItem = (
414 item: ExecuteOutputItem,
415): item is { readonly type: "file"; readonly file: ToolFileValue } =>
416 isRecord(item) && item.type === "file" && isToolFile(item.file);
417
418const isMcpContentBlock = (value: unknown): value is ContentBlock =>
419 ContentBlockSchema.safeParse(value).success;

Callers 1

outputItemContentFunction · 0.85

Calls 2

isToolFileFunction · 0.90
isRecordFunction · 0.70

Tested by

no test coverage detected