diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 1f5c58ea5a..65c8c37df2 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -477,7 +477,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]interface{}) resultJSON, _ := json.MarshalIndent(result, "", " ") return &ToolResult{ - ForLLM: fmt.Sprintf("Fetched %d bytes from %s (extractor: %s, truncated: %v)", len(text), urlStr, extractor, truncated), + ForLLM: string(resultJSON), ForUser: string(resultJSON), } }