Webform Element Create
webform_element_createAdd a new element to a Drupal webform by providing the webform ID, element key, element type, and label.
Instructions
Add an element to a webform.
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": {
"webform_id": "<webform_id>",
"element_key": "<element_key>",
"element_type": "<element_type>",
"label": "<label>"
},
"name": "webform_element_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| properties | No | ||
| webform_id | Yes | ||
| element_key | Yes | ||
| element_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||