MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTruncationMessage

Function getTruncationMessage

src/utils/mcpValidation.ts:81–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81function getTruncationMessage(): string {
82 return `\n\n[OUTPUT TRUNCATED - exceeded ${getMaxMcpOutputTokens()} token limit]
83
84The tool output was truncated. If this MCP server provides pagination or filtering tools, use them to retrieve specific portions of the data. If pagination is not available, inform the user that you are working with truncated output and results may be incomplete.`
85}
86
87function truncateString(content: string, maxChars: number): string {
88 if (content.length <= maxChars) {

Callers 1

truncateMcpContentFunction · 0.85

Calls 1

getMaxMcpOutputTokensFunction · 0.85

Tested by

no test coverage detected