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

Function collectToolNamesResponses

internal/toolinjection/injection.go:139–141  ·  view source on GitHub ↗

collectToolNamesResponses extracts tool names from a Responses API request.

(rawJSON []byte)

Source from the content-addressed store, hash-verified

137
138// collectToolNamesResponses extracts tool names from a Responses API request.
139func collectToolNamesResponses(rawJSON []byte) []string {
140 return collectToolNamesFromPath(rawJSON, "name")
141}
142
143// collectToolNamesFromPath extracts tool names using the given gjson path within each tool.
144func collectToolNamesFromPath(rawJSON []byte, namePath string) []string {

Callers 1

CollectToolNamesMethod · 0.85

Calls 1

collectToolNamesFromPathFunction · 0.85

Tested by

no test coverage detected