Tools
ToolRegistry
Searchable, groupable catalog of available tools with per-tool toggles.
Preview
Tools
3/4 activeRetrieval
Compute
Installation
pnpm add nyxis-ui
Usage
import { ToolRegistry, type RegisteredTool } from 'nyxis-ui';
const tools: RegisteredTool[] = [
{
id: 'search',
name: 'search_documents',
description: 'Vector search over the corpus.',
group: 'Retrieval',
},
// ...
];
<ToolRegistry tools={tools} onChange={(active) => persist(active)} />;
Anatomy
- Search — case-insensitive over name + description.
- Groups — set
groupon a tool; rows are clustered with sticky headers. - Toggles — controlled via
value(ordefaultValue); callonChangewith the new active set.
Pair with useToolExecutor from nyxis-ui/ai to wire client-side implementations for the tools the user enables.