Agents / Interaction
Arguments form
Turn a tool schema into a usable form, with a JSON escape hatch.
Registry
Installation
Add the registry entry to your app.
npx shadcn@latest add @fabrials/arguments-formWithout the named registry, use the address:
https://ui.fabrials.com/r/arguments-form.json
API reference
| Prop / export | Type | Description |
|---|---|---|
schema | JsonSchema | Self-contained JSON Schema 2020-12. |
onSubmit | (args) => Promise<unknown> | Receives validated arguments. |
initialValues | Record<string, unknown> | Initial input values. |
submitLabel | string | Submit action label. |
Behavior
Simple scalar object schemas become fields. Composed, nested and array schemas use JSON editing. AJV validates both paths; unresolved external references fail explicitly.
Accessibility
Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.