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

Function PickReadTool

internal/sessions/session_injection.go:101–105  ·  view source on GitHub ↗

PickReadTool returns the best file-read tool name from the session's observed tools.

(sess *Session)

Source from the content-addressed store, hash-verified

99
100// PickReadTool returns the best file-read tool name from the session's observed tools.
101func PickReadTool(sess *Session) string {
102 return pickToolByPriority(sess, readToolPriority, func(lower string) bool {
103 return lower == "read" || (strings.Contains(lower, "read") && strings.Contains(lower, "file"))
104 })
105}
106
107// PickWriteTool returns the best file-write tool name from the session's observed tools.
108func PickWriteTool(sess *Session) string {

Calls 1

pickToolByPriorityFunction · 0.85