From 29c3454802a1ca5ee3b0e6084a6e47c1edede9be Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Feb 2026 18:12:37 +0000 Subject: [PATCH] perf: optimize web_fetch output by removing indent --- pkg/tools/web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }