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

Function RenderWriteFileToolResult

tools/basic_ui.go:76–81  ·  view source on GitHub ↗
(content string, isError bool)

Source from the content-addressed store, hash-verified

74}
75
76func RenderWriteFileToolResult(content string, isError bool) string {
77 if isError {
78 return "Write failed: " + truncateString(content, 150)
79 }
80 return "Write OK"
81}
82
83func RenderGroupedWriteFileToolUse(inputs []WriteFileInput) string {
84 if len(inputs) == 0 {

Callers

nothing calls this directly

Calls 1

truncateStringFunction · 0.70

Tested by

no test coverage detected