MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / schemaKeys

Function schemaKeys

cmd/inject-cli/main.go:299–315  ·  view source on GitHub ↗
(schema map[string]any)

Source from the content-addressed store, hash-verified

297}
298
299func schemaKeys(schema map[string]any) string {
300 if schema == nil {
301 return "(none)"
302 }
303 props, ok := schema["properties"].(map[string]any)
304 if !ok {
305 return fmt.Sprintf("(%d keys)", len(schema))
306 }
307 names := make([]string, 0, len(props))
308 for k := range props {
309 names = append(names, k)
310 }
311 if len(names) > 5 {
312 return strings.Join(names[:5], ", ") + fmt.Sprintf(" (+%d)", len(names)-5)
313 }
314 return strings.Join(names, ", ")
315}
316
317// interactiveReadLine uses a temporary readline instance for a single prompt
318// (used inside interactive add/delete flows).

Callers 2

showSessionToolsFunction · 0.85
cmdObservedToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected