MCPcopy
hub / github.com/codeaashu/claude-code / toString

Method toString

src/utils/stringUtils.ts:181–189  ·  view source on GitHub ↗

* Returns the accumulated string, with truncation marker if truncated

()

Source from the content-addressed store, hash-verified

179 * Returns the accumulated string, with truncation marker if truncated
180 */
181 toString(): string {
182 if (!this.isTruncated) {
183 return this.content
184 }
185
186 const truncatedBytes = this.totalBytesReceived - this.maxSize
187 const truncatedKB = Math.round(truncatedBytes / 1024)
188 return this.content + `\n... [output truncated - ${truncatedKB}KB removed]`
189 }
190
191 /**
192 * Clears all accumulated data

Callers 2

callFunction · 0.95
callFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected