insert_element
Add widgets like headings, images, or buttons to specific positions in WordPress Elementor sections or columns to build page layouts.
Instructions
Insert a widget element at a specific position within an existing column or section
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": {
"page_id": "<page_id>",
"parent_id": "<parent_id>",
"widget_type": "<widget_type>"
},
"name": "insert_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| parent_id | Yes | ID of the parent column or section to insert into | |
| position | No | Position index (0 = first, -1 = last). Default: -1 (append) | |
| widget_type | Yes | Type of widget to insert | |
| settings | No | Widget settings (varies by widget type). Examples: {title: "Hello"} for heading, {editor: "<p>Text</p>"} for text-editor, {image: {url: "..."}} for image, {text: "Click", link: {url: "#"}} for button |