Add form field
add_form_fieldAppend (or replace by key) a single field on a form's schema_json.fields.
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_id": "<form_id>",
"key": "<key>",
"label": "<label>",
"type": "<type>"
},
"name": "add_form_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| type | Yes | text|email|phone|textarea|number|select|checkbox|file | |
| label | Yes | ||
| form_id | Yes | ||
| options | No | ||
| helpText | No | ||
| position | No | Insert index (default: append) | |
| required | No | ||
| placeholder | No | ||
| target_tenant_id | No | Platform super-admins only: operate on this tenant instead of your own. |