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

Function isRecord

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

Source from the content-addressed store, hash-verified

288const TEXT_FILE_CONTENT_MAX_CHARS = 64_000;
289
290const isRecord = (value: unknown): value is Record<string, unknown> =>
291 typeof value === "object" && value !== null && !Array.isArray(value);
292
293const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
294

Callers 2

isFileOutputItemFunction · 0.70
isContentOutputItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected