perf: optimize web_fetch output by removing indent

This commit is contained in:
root
2026-02-15 18:12:37 +00:00
parent b4fbb7147b
commit 29c3454802

View File

@@ -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
}