media_eio_run
Imports Elementor Image Optimizer results: optimized sizes become Media records, original links are rewritten to current files, originals move to backup; requires confirm:true after a dry run.
Instructions
Import Elementor Image Optimizer's work (no re-encoding): its optimized sizes become [cvrt] Media records, links to its originals are rewritten to the current files, and its originals move into the backup store, up to limit attachments per call (repeat until done, each step is resumable). Changes records, content links and files on the site; run media_eio_dry_run first. Needs confirm: true, otherwise the site refuses with 400.
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": {
"site": "<site>"
},
"name": "media_eio_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| limit | No | Most attachments adopted in this call, 1..500 | |
| confirm | No | Must be true for the action to run; anything else makes the site refuse it with 400 |