MCPcopy Create free account
hub / github.com/idosal/git-mcp / formatContent

Function formatContent

app/chat/components/tool-invocation.tsx:69–83  ·  view source on GitHub ↗
(content: any)

Source from the content-addressed store, hash-verified

67 };
68
69 const formatContent = (content: any): string => {
70 try {
71 if (typeof content === "string") {
72 try {
73 const parsed = JSON.parse(content);
74 return JSON.stringify(parsed, null, 2);
75 } catch {
76 return content;
77 }
78 }
79 return JSON.stringify(content, null, 2);
80 } catch {
81 return String(content);
82 }
83 };
84
85 return (
86 <div

Callers 1

ToolInvocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected