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

Function extractPlainOutput

internal/bridge/forward.go:91–94  ·  view source on GitHub ↗

extractPlainOutput extracts the actual output from tool result text, stripping metadata like "Exit code:", "Wall time:", "Output:" wrappers.

(raw string)

Source from the content-addressed store, hash-verified

89// extractPlainOutput extracts the actual output from tool result text,
90// stripping metadata like "Exit code:", "Wall time:", "Output:" wrappers.
91func extractPlainOutput(raw string) string {
92 resp := parseToolOutput(raw)
93 return string(resp.Stdout)
94}
95
96// ---------------------------------------------------------------------------
97// Tool output parsing

Calls 1

parseToolOutputFunction · 0.85