refactor: update tools handling and improve CLI documentation

This commit is contained in:
2026-02-22 21:34:00 -08:00
parent a5e9835d55
commit eab6f8b535
7 changed files with 32 additions and 51 deletions

View File

@@ -8,7 +8,7 @@ import type {
GatewayInfo,
ServiceActionResponse,
SSEHealthEvent,
ToolCategory,
ToolSummary,
ToolDetail,
} from "@/types"
@@ -110,7 +110,7 @@ export function useToolAction() {
export function useTools() {
return useQuery({
queryKey: ["tools"],
queryFn: () => apiClient.get<ToolCategory[]>("/tools"),
queryFn: () => apiClient.get<ToolSummary[]>("/tools"),
})
}