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

Function jsonMarshalCompact

tools/builtin.go:1012–1021  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

1010 if len(names) == 0 {
1011 return "No tool names specified. Use 'select:Name1,Name2' to load specific tools."
1012 }
1013 var lines, activated, notFound, alreadyActive []string
1014 for _, name := range names {
1015 if registry.Get(name) != nil {
1016 alreadyActive = append(alreadyActive, name)
1017 continue
1018 }
1019 tool := registry.ActivateTool(name)
1020 if tool != nil {
1021 activated = append(activated, name)
1022 schema, _ := jsonMarshalCompact(tool.ToAPISchema()["input_schema"])
1023 lines = append(lines, "## "+name)
1024 lines = append(lines, "Description: "+tool.Description())

Callers 1

handleToolSearchSelectFunction · 0.85

Calls 1

Tested by

no test coverage detected