MCPcopy
hub / github.com/NateBJones-Projects/OB1 / toolFailure

Function toolFailure

integrations/enhanced-mcp/index.ts:69–74  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

67}
68
69function toolFailure(message: string) {
70 return {
71 content: [{ type: "text" as const, text: `Error: ${message}` }],
72 isError: true,
73 };
74}
75
76function truncateContent(content: string, maxLen: number): string {
77 if (!content || content.length <= maxLen) return content;

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…