From 5bec008b8172f3892ad7d736b039e0667cce04ab Mon Sep 17 00:00:00 2001 From: Kenneth Sinder Date: Sun, 21 Sep 2025 10:05:40 -0700 Subject: [PATCH 1/5] ToolsTab: truncate tool descriptions for nicer rendering --- client/src/components/ToolsTab.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 377521ae..6c72b208 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -95,7 +95,7 @@ const ToolsTab = ({ renderItem={(tool) => (
{tool.name} - + {tool.description}
@@ -114,9 +114,12 @@ const ToolsTab = ({
{selectedTool ? (
-

+

Description
+
{selectedTool.description} -

+
+
+
Inputs & Outputs
{Object.entries(selectedTool.inputSchema.properties ?? []).map( ([key, value]) => { const prop = normalizeUnionType(value as JsonSchemaType); From 3d3a79e10950aa0bada35bb674c9d7b529965c33 Mon Sep 17 00:00:00 2001 From: olaservo Date: Tue, 7 Oct 2025 20:57:42 -0700 Subject: [PATCH 2/5] Add enum parameter support in ToolsTab component and corresponding tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- client/src/components/ToolsTab.tsx | 43 ++++++++++++++ .../components/__tests__/ToolsTab.test.tsx | 58 +++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 0123296a..0c7cb17a 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -5,6 +5,13 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { TabsContent } from "@/components/ui/tabs"; import { Textarea } from "@/components/ui/textarea"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import DynamicJsonForm, { DynamicJsonFormRef } from "./DynamicJsonForm"; import type { JsonValue, JsonSchemaType } from "@/utils/jsonUtils"; import { @@ -180,6 +187,42 @@ const ToolsTab = ({ {prop.description || "Toggle this option"}
+ ) : prop.type === "string" && prop.enum ? ( + ) : prop.type === "string" ? (