wp_elementor_update_text
Update Elementor heading or text widgets by matching existing text and replacing it with new content, with a snapshot created before changes for rollback.
Instructions
Find a heading or text-editor widget by matching existing text and replace it. Creates a snapshot before updating.
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>",
"match_text": "<match_text>",
"new_text": "<new_text>"
},
"name": "wp_elementor_update_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| new_text | Yes | Replacement text | |
| match_text | Yes | Existing text to find (partial match supported) | |
| widget_type | No | Widget type: heading, text-editor, or raven-heading | heading |