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

Function isRecord

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

Source from the content-addressed store, hash-verified

327const TEXT_FILE_CONTENT_MAX_CHARS = 64_000;
328
329const isRecord = (value: unknown): value is Record<string, unknown> =>
330 typeof value === "object" && value !== null && !Array.isArray(value);
331
332const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
333

Callers 2

isFileOutputItemFunction · 0.70
isContentOutputItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected