From 222a7cb7edce185f68d68ac38b98b5e407f1310b Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Thu, 15 Feb 2024 13:16:59 -0700 Subject: [PATCH] Print tool descriptions in --list-tools --- pkg/types/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/tool.go b/pkg/types/tool.go index c3c01225..c71cff46 100644 --- a/pkg/types/tool.go +++ b/pkg/types/tool.go @@ -54,7 +54,7 @@ func (t Tool) String() string { _, _ = fmt.Fprintf(buf, "Name: %s\n", t.Parameters.Name) } if t.Parameters.Description != "" { - _, _ = fmt.Fprintf(buf, "Description: %s\n", t.Parameters.Name) + _, _ = fmt.Fprintf(buf, "Description: %s\n", t.Parameters.Description) } if len(t.Parameters.Tools) != 0 { _, _ = fmt.Fprintf(buf, "Tools: %s\n", strings.Join(t.Parameters.Tools, ", "))