Changeset 0.22.9 (#151)

This commit is contained in:
2026-03-04 17:39:22 +00:00
parent 7e26a2a261
commit 6ed76fb2d3
27 changed files with 3392 additions and 3224 deletions

View File

@@ -670,6 +670,7 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
var manifest struct {
Tools []struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
Description string `json:"description"`
} `json:"tools"`
}
@@ -677,8 +678,13 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
continue
}
for _, t := range manifest.Tools {
displayName := t.DisplayName
if displayName == "" {
displayName = t.Name
}
result = append(result, toolInfo{
Name: t.Name,
DisplayName: displayName,
Description: t.Description,
Category: "browser",
})