generate_react_form
Generates typed, validated React form components with React Hook Form, Zod, and Tailwind CSS from a field schema.
Instructions
Generates fully typed, validated React components using React Hook Form, Zod, and Tailwind CSS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"formName": "<formName>",
"fields": "<fields>"
},
"name": "generate_react_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Array of form fields | |
| formName | Yes | Component name (e.g., UserLoginForm) |