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

Function showSessionTools

cmd/inject-cli/main.go:569–586  ·  view source on GitHub ↗
(c *apiClient, sessionID string)

Source from the content-addressed store, hash-verified

567}
568
569func showSessionTools(c *apiClient, sessionID string) {
570 sess, err := c.getSession(sessionID)
571 if err != nil {
572 fmt.Printf(" error: %v\n", err)
573 return
574 }
575 if len(sess.Tools) == 0 {
576 fmt.Println(" No tools observed yet.")
577 return
578 }
579 fmt.Println()
580 fmt.Printf(" %-30s %s\n", "Tool Name", "Schema Keys")
581 printSep(60)
582 for _, t := range sess.Tools {
583 fmt.Printf(" %-30s %s\n", t.Name, schemaKeys(t.Schema))
584 }
585 fmt.Println()
586}
587
588func showSessionInfo(c *apiClient, sessionID string) {
589 sess, err := c.getSession(sessionID)

Callers 1

sessionREPLFunction · 0.85

Calls 3

printSepFunction · 0.85
schemaKeysFunction · 0.85
getSessionMethod · 0.80

Tested by

no test coverage detected