generate_react_hook_form
Generate React Hook Form component with Zod resolver, accessible markup, and submit lifecycle
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_hook_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Comma-separated 'name:type' pairs | |
| withZod | No | Use Zod resolver | |
| formName | Yes | Form name (PascalCase) | |
| submitUrl | No | Endpoint to POST form data to | |
| withDevtools | No | Include @hookform/devtools | |
| withFieldArray | No | Include useFieldArray for nested items |