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

Function stringFromExecCtx

tools/builtin.go:1066–1074  ·  view source on GitHub ↗
(execCtx ExecutionContext, key string)

Source from the content-addressed store, hash-verified

1064
1065func handleToolSearchQuery(query string, registry *ToolRegistry) string {
1066 results := registry.SearchDeferred(query)
1067 if len(results) == 0 {
1068 deferred := registry.GetDeferredTools()
1069 if len(deferred) == 0 {
1070 return "No deferred tools are available. All tools are already loaded."
1071 }
1072 names := make([]string, 0, len(deferred))
1073 for name := range deferred {
1074 names = append(names, name)
1075 }
1076 sort.Strings(names)
1077 return fmt.Sprintf("No tools match '%s'.\n\nAvailable deferred tools: %s\n\nUse 'select:Name' to load one or more of them.", query, strings.Join(names, ", "))

Callers 9

BackfillGrepSearchInputFunction · 0.85
BackfillGlobMatchInputFunction · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
resolveToolPathFunction · 0.85
BackfillReadFileInputFunction · 0.85
BackfillWriteFileInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected