MCPcopy
hub / github.com/opactorai/Claudable / toDisplayString

Function toDisplayString

lib/services/cli/cursor.ts:178–189  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

176}
177
178function toDisplayString(value: unknown): string {
179 if (typeof value === 'string') return value;
180 if (value == null) return '';
181 if (typeof value === 'number' || typeof value === 'boolean') {
182 return String(value);
183 }
184 try {
185 return JSON.stringify(value, null, 2);
186 } catch {
187 return String(value);
188 }
189}
190
191async function dispatchToolMessage(
192 projectId: string,

Callers 2

handleToolEventFunction · 0.85
runCursorOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected