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

Function isContentOutputItem

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

Source from the content-addressed store, hash-verified

419 ContentBlockSchema.safeParse(value).success;
420
421const isContentOutputItem = (
422 item: ExecuteOutputItem,
423): item is { readonly type: "content"; readonly content: ContentBlock } =>
424 isRecord(item) && item.type === "content" && isMcpContentBlock(item.content);
425
426const outputItemContent = (item: ExecuteOutputItem): ContentBlock[] => {
427 if (isFileOutputItem(item)) {

Callers 1

outputItemContentFunction · 0.85

Calls 2

isRecordFunction · 0.70
isMcpContentBlockFunction · 0.70

Tested by

no test coverage detected