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

Function isContentOutputItem

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

Source from the content-addressed store, hash-verified

662 ContentBlockSchema.safeParse(value).success;
663
664const isContentOutputItem = (
665 item: ExecuteOutputItem,
666): item is { readonly type: "content"; readonly content: ContentBlock } =>
667 isRecord(item) && item.type === "content" && isMcpContentBlock(item.content);
668
669const outputItemContent = (item: ExecuteOutputItem): ContentBlock[] => {
670 if (isFileOutputItem(item)) {

Callers 1

outputItemContentFunction · 0.85

Calls 2

isRecordFunction · 0.70
isMcpContentBlockFunction · 0.70

Tested by

no test coverage detected