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