"use client"; import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription, } from "@/components/ui/sheet"; import { Badge } from "@/components/ui/badge"; import type { McpTool } from "@/lib/api/settings"; type Props = { tool: McpTool | null; open: boolean; onOpenChange: (o: boolean) => void; }; export function ToolDetailDrawer({ tool, open, onOpenChange }: Props) { return ( {tool && ( <> {tool.name} {tool.description || "—"}
Module
{tool.module}
Source
{tool.source_location || "—"}
Parameters Schema
                  {JSON.stringify(tool.params_schema, null, 2)}
                
)}
); }