ToolSchemaBrowser
API reference and demos for ToolSchemaBrowser.
Import
Section titled “Import”import { ToolSchemaBrowser } from "@flanksource/clicky-ui/ai";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
onRule |
(…) => … |
— | Enables click-to-toggle badges; emits one ordered policy rule per click. |
onRulesChange |
(…) => … |
— | — |
rules |
PermissionPolicy |
— | Saved rules; with `onRulesChange`, shows the collapsed strategy editor. |
tools* |
ToolMeta[] |
— | — |
value |
Record<string, ToolPolicy> |
— | Server-resolved effective permission shown beside each tool. |