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

Function resolveToolPath

tools/builtin.go:1052–1064  ·  view source on GitHub ↗
(execCtx ExecutionContext, path string)

Source from the content-addressed store, hash-verified

1050 suggestions = "Available deferred tools (use select: to load): " + strings.Join(candidates, ", ")
1051 }
1052 }
1053 if suggestions != "" {
1054 parts = append(parts, fmt.Sprintf("Not found: %s. %s", strings.Join(notFound, ", "), suggestions))
1055 } else {
1056 parts = append(parts, fmt.Sprintf("Not found: %s. No deferred tools available.", strings.Join(notFound, ", ")))
1057 }
1058 }
1059 if len(parts) == 0 {
1060 return "No tools were activated."
1061 }
1062 return strings.Join(parts, "\n")
1063}
1064
1065func handleToolSearchQuery(query string, registry *ToolRegistry) string {
1066 results := registry.SearchDeferred(query)
1067 if len(results) == 0 {

Callers 12

ValidateInputMethod · 0.85
ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85
ValidateInputMethod · 0.85
ExecuteMethod · 0.85

Calls 3

GetConfigFunction · 0.92
stringFromExecCtxFunction · 0.85
resolvePathBestEffortFunction · 0.85

Tested by

no test coverage detected