diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 69724ac..81a6523 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -12,6 +12,7 @@ import ( "time" "clawgo/pkg/logger" + ) const ( @@ -275,7 +276,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]interface{}) "text": text, } - resultJSON, _ := json.MarshalIndent(result, "", " ") + resultJSON, _ := json.Marshal(result) return string(resultJSON), nil }