wp_elementor_update_image
Update an Elementor image widget: find it by element ID or matching URL, then set its image ID, URL, or caption.
Instructions
Update an image widget by element_id or match_url. Set image_id, image_url, and/or caption.
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>"
},
"name": "wp_elementor_update_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| page_id | Yes | ||
| image_id | No | WordPress attachment ID | |
| image_url | No | Image URL | |
| match_url | No | Find image by current URL substring | |
| element_id | No | Target element ID (preferred) |