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

Function outputItemContent

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

Source from the content-addressed store, hash-verified

569 isRecord(item) && item.type === "content" && isMcpContentBlock(item.content);
570
571const outputItemContent = (item: ExecuteOutputItem): ContentBlock[] => {
572 if (isFileOutputItem(item)) {
573 return outputFileContent(item.file);
574 }
575 if (isContentOutputItem(item)) {
576 return [item.content];
577 }
578 return [{ type: "text", text: "Invalid execution output item omitted." }];
579};
580
581const toMcpOutputResult = (
582 result: FormattedExecuteInput,

Callers

nothing calls this directly

Calls 3

isFileOutputItemFunction · 0.85
outputFileContentFunction · 0.85
isContentOutputItemFunction · 0.85

Tested by

no test coverage detected