Insert a template into a page
elementor_apply_templateInsert a saved Elementor template layout into a page with fresh element IDs, either at the root or relative to an existing element; snapshots the page first for safe edits.
Instructions
Insert a saved template's layout into a page, with fresh element ids. Place it at the page root, or relative to an existing element with targetId and position. The page is snapshotted first.
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": {
"postId": "<postId>",
"templateId": "<templateId>"
},
"name": "elementor_apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| postId | Yes | WordPress post ID of the Elementor page, post or template. | |
| position | No | append/prepend place the element inside the target; before/after place it as a sibling of the target. | append |
| targetId | No | Place relative to this element. Omit to append at the root. | |
| templateId | Yes |