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

Function ArgRow

tools/debug-console/components/ToolCallCard.tsx:244–261  ·  view source on GitHub ↗
({ k, v }: { k: string; v: unknown })

Source from the content-addressed store, hash-verified

242}
243
244function ArgRow({ k, v }: { k: string; v: unknown }) {
245 const str = formatValue(v);
246 const isMultiline = str.includes("\n") || str.length > 70;
247 return (
248 <>
249 <dt>{k}</dt>
250 <dd>
251 {isMultiline ? (
252 <pre className="overflow-x-auto whitespace-pre-wrap border border-[var(--line)] bg-[var(--ink)] p-2 text-[11px] leading-relaxed">
253 {str}
254 </pre>
255 ) : (
256 <span className="font-mono">{str}</span>
257 )}
258 </dd>
259 </>
260 );
261}

Callers

nothing calls this directly

Calls 1

formatValueFunction · 0.85

Tested by

no test coverage detected