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

Function isRecord

packages/hosts/mcp/src/tool-server.ts:572–573  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

570const TEXT_FILE_CONTENT_MAX_CHARS = 64_000;
571
572const isRecord = (value: unknown): value is Record<string, unknown> =>
573 typeof value === "object" && value !== null && !Array.isArray(value);
574
575const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
576

Callers 3

answeredTermsFunction · 0.70
isFileOutputItemFunction · 0.70
isContentOutputItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected