N
Nyxis
Tools

ToolRegistry

Searchable, groupable catalog of available tools with per-tool toggles.

Preview

Tools

3/4 active
  • Retrieval

  • 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 group on a tool; rows are clustered with sticky headers.
  • Toggles — controlled via value (or defaultValue); call onChange with the new active set.

Pair with useToolExecutor from nyxis-ui/ai to wire client-side implementations for the tools the user enables.