MCPcopy
hub / github.com/Dimillian/CodexMonitor / truncateToolText

Function truncateToolText

src/utils/threadItems.shared.ts:42–47  ·  view source on GitHub ↗
(toolType: string, text: string)

Source from the content-addressed store, hash-verified

40}
41
42export function truncateToolText(toolType: string, text: string) {
43 const maxLength = LARGE_TOOL_TYPES.has(toolType)
44 ? MAX_LARGE_TOOL_TEXT
45 : MAX_ITEM_TEXT;
46 return truncateText(text, maxLength);
47}
48
49export function normalizeStringList(value: unknown) {
50 if (Array.isArray(value)) {

Callers 1

normalizeItemFunction · 0.90

Calls 1

truncateTextFunction · 0.70

Tested by

no test coverage detected