MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / truncateString

Function truncateString

tools/search_ui.go:164–170  ·  view source on GitHub ↗
(text string, limit int)

Source from the content-addressed store, hash-verified

162}
163
164func truncateString(text string, limit int) string {
165 runes := []rune(text)
166 if len(runes) <= limit {
167 return text
168 }
169 return string(runes[:limit])
170}

Callers 14

RenderGrepSearchToolUseFunction · 0.70
RenderToolSearchToolUseFunction · 0.70
RenderReadFileToolResultFunction · 0.70
RenderBashToolResultFunction · 0.70
RenderGroupedBashToolUseFunction · 0.70
RenderMCPDynamicToolUseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected