form_add_validation
Add client-side validation rules to any form using schema constraints. Choose Zod, Yup, Joi, or native validation to enforce required fields, min/max, and patterns.
Instructions
Add client-side validation rules to a form based on schema constraints
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": {
"form_code": "<form_code>"
},
"name": "form_add_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema with validation constraints (min, max, pattern, required) | |
| api_key | No | API key for authentication | |
| library | No | Validation library: 'zod', 'yup', 'joi', 'native' | |
| form_code | Yes | Existing form code to add validation to |