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

Function isContentOutputItem

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

Source from the content-addressed store, hash-verified

380 ContentBlockSchema.safeParse(value).success;
381
382const isContentOutputItem = (
383 item: ExecuteOutputItem,
384): item is { readonly type: "content"; readonly content: ContentBlock } =>
385 isRecord(item) && item.type === "content" && isMcpContentBlock(item.content);
386
387const outputItemContent = (item: ExecuteOutputItem): ContentBlock[] => {
388 if (isFileOutputItem(item)) {

Callers 1

outputItemContentFunction · 0.85

Calls 2

isRecordFunction · 0.70
isMcpContentBlockFunction · 0.70

Tested by

no test coverage detected