Tool

The Tool component displays a collapsible interface for showing/hiding tool details. It is designed to take the ToolUIPart type from the AI SDK and display it in a collapsible interface.

Tool Components Example

Installation

pnpm dlx shadcn-svelte@latest add https://ai-elements.vercel.app/r/tool.json

Usage