wp_elementor_generate_element
Generates a valid Elementor element JSON object. Supports container, row, column, heading, text, image, button, and generic widget.
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": {
"site_id": "<site_id>",
"type": "<type>"
},
"name": "wp_elementor_generate_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | h2 | |
| url | No | # | |
| type | Yes | ||
| title | No | ||
| width | No | ||
| content | No | ||
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. | |
| children | No | ||
| is_inner | No | ||
| settings | No | ||
| button_text | No | Click | |
| widget_type | No | ||
| attachment_id | No |