set_validator
Add validation rules like required or format to the x-validator array to enforce data constraints in ELN templates.
Instructions
添加校验规则到 x-validator 数组。
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": {
"path": "<path>",
"rule": "<rule>"
},
"name": "set_validator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| rule | Yes | 如 { required: true } 或 { format: "email" } |