feat: add single tool schema rendering

This commit is contained in:
2026-09-04 16:12:43 +05:00
parent d1a386f92f
commit 1c746299c9
6 changed files with 550 additions and 0 deletions
@@ -1,6 +1,7 @@
<script lang="ts">
import { getTool } from "$lib/registry";
import ToolView from "$lib/components/kit/ToolView.svelte";
import SchemaToolView from "$lib/components/kit/SchemaToolView.svelte";
import EmptyState from "$lib/components/kit/EmptyState.svelte";
import { SlidersHorizontal as ToolIcon } from "@lucide/svelte";
@@ -25,6 +26,8 @@
icon={ToolIcon}
/>
</div>
{:else if tool.schema}
<SchemaToolView {tool} />
{:else}
<ToolView {tool} />
{/if}