MCPcopy Create free account
hub / github.com/Qinbf/groundmap / formatValue

Function formatValue

tools/debug-console/components/ToolCallCard.tsx:54–63  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

52}
53
54function formatValue(v: unknown): string {
55 if (v === null || v === undefined) return "—";
56 if (typeof v === "string") return v;
57 if (typeof v === "number" || typeof v === "boolean") return String(v);
58 try {
59 return JSON.stringify(v, null, 2);
60 } catch {
61 return String(v);
62 }
63}
64
65function formatResult(
66 result: ToolCallVizData["result"],

Callers 1

ArgRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected