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

Function RenderNotebookEditToolUse

tools/notebook_ui.go:9–21  ·  view source on GitHub ↗
(input NotebookEditInput)

Source from the content-addressed store, hash-verified

7)
8
9func RenderNotebookEditToolUse(input NotebookEditInput) string {
10 name := filepath.Base(input.NotebookPath)
11 mode := notebookEditMode(input.EditMode)
12 modeLabel := ""
13 if mode != "replace" {
14 modeLabel = " (" + mode + ")"
15 }
16 cellID := input.CellID
17 if len(cellID) > 8 {
18 cellID = cellID[:8]
19 }
20 return "Edit notebook" + modeLabel + ": " + name + " cell[" + cellID + "]"
21}
22
23func RenderNotebookEditToolResult(content string, isError bool) string {
24 if isError {

Callers 1

Calls 1

notebookEditModeFunction · 0.85

Tested by

no test coverage detected