apply_template_to_page
Apply an Elementor template or page layout to an existing draft page, with automatic backup of the target for safe rollback.
Instructions
Copy the _elementor_data + _elementor_page_settings of a SOURCE template (or page) onto a TARGET page on the same site. Backs up the target first. Use to apply a section/page template to an existing draft.
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": {
"source_id": "<source_id>",
"target_page_id": "<target_page_id>"
},
"name": "apply_template_to_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | ||
| source_id | Yes | Source post id: a template or a page. | |
| target_page_id | Yes | ||
| backup_to_file | No | ||
| confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| target_page_id | Yes | ||
| source_id | Yes | ||
| confirmation_token | No | ||
| expires_in_seconds | No | ||
| backup_meta_key | No | ||
| backup_file | No | ||
| css_flush | No |