MCPcopy Index your code
hub / github.com/Waishnav/devspace / toolErrorPreview

Function toolErrorPreview

src/server.ts:294–298  ·  view source on GitHub ↗
(content: ToolContent[])

Source from the content-addressed store, hash-verified

292}
293
294function toolErrorPreview(content: ToolContent[]): string | undefined {
295 const text = contentText(content).replace(/\s+/g, " ").trim();
296 if (!text) return undefined;
297 return text.length > 240 ? `${text.slice(0, 237)}...` : text;
298}
299
300function logFailedToolResponse(
301 config: ServerConfig,

Callers 1

logFailedToolResponseFunction · 0.85

Calls 1

contentTextFunction · 0.85

Tested by

no test coverage detected