Robin Image Optimizer AI and MCP abilities
Robin Image Optimizer makes tools available through the WordPress Abilities API. A compatible, authenticated Abilities API or MCP (Model Context Protocol) client can use these tools to read and update optimization settings, process media, restore originals, and check job progress. Robin Image Optimizer exposes the abilities but does not connect an AI client to WordPress for you.
In this article
Requirements
Latest version of Robin Image Optimizer and WordPress 6.9 or later. Robin's abilities are available only when the WordPress Abilities API is available.
You also need a compatible connector, such as Easy MCP AI, and an AI client connected to your WordPress site. For setup instructions, see Getting Started with Easy MCP AI.
Connect your AI client and enable Robin's abilities
In your WordPress dashboard, open Easy MCP AI > Dashboard. In the Connect your AI client area, choose your AI client and follow the on-screen steps to connect it to your site. If you use another compatible connector, follow its connection instructions.
Open Easy MCP AI > Tools, then select Abilities.
All abilities are off by default. In the Robin group, enable all needed abilities.
Click Save changes to make them available to connected clients.

Available abilities
robin/optimize-mediaoptimizes selected attachment IDs, or converts them to WebP or AVIF. Each call can process up to 500 attachments.robin/restore-originalsrestores selected optimized attachments when original-image backups are available. Each call can process up to 500 attachments.robin/get-jobreturns status, progress, savings, errors, and queue information for a job ID or attachment IDs.robin/get-optimization-policyreads compression, conversion, upload optimization, backup, resizing, thumbnail, and scheduling settings.robin/update-optimization-policychanges only the policy fields you supply and returns the effective policy.
The following abilities provide additional control over settings, optimization runs, backups, folders, and logs:
- Settings and individual media
robin/reset-optimization-policyrestores the optimization settings to their defaults.robin/update-media-optionsacceptsmedia_idsand the optional Boolean fieldskeep_dimensionsandexclude. If you omit either field, that option is left unchanged.
- Statistics and failures
robin/get-statsreturns image counts, savings, run status, and groups of failed images.robin/get-failuresrequires agroupfromrobin/get-stats. To read another page, pass the returnednextvalue asafter.
- Bulk optimization
robin/start-bulk-optimizationstarts a bulk run using the saved scheduling or background optimization policy.robin/stop-bulk-optimizationstops the run. It does not undo images that have already been optimized. Userobin/get-statsto monitor the run.
- Service and delivery
robin/get-server-statusreturns the optimization service and plan status.robin/test-deliverytests the saved delivery mode using temporary files. A server-side test may not match CDN behavior or what real visitors see.
- Backups
robin/get-backupsreturns the number of backups (count) and their total size in bytes (size).robin/restore-all-backupsrestores backups in batches. If the response hasend: false, call the ability again and pass the failed attachment IDs accumulated so far asskip.robin/clear-backupspermanently deletes the backup files. This ability requiresconfirm: true.
- Custom folders (Pro)
robin/browse-folderslists folders and accepts an optional site-root-relativedirto browse within a folder.robin/add-custom-folderadds a folder using its site-root-relativepath.robin/scan-custom-folderscans a folder by itsuid. If the scan is not finished, call the ability again with the sameuidand the returnedoffsetandtotal.robin/remove-custom-folderremoves a folder from Robin's list using itsuid; it does not delete the image files.- After adding and scanning a folder, start optimization using the
custom-foldersscope.
- Error logs
robin/get-logreads the error log created while theerror_logpolicy field is enabled.robin/clear-logdeletes the error-log files.
Scope-based abilities use media-library when no scope is supplied. The other scopes are custom-folders and nextgen-gallery, for custom folders and NextGEN Gallery, respectively. Both require Pro and the corresponding integration.
Processing, safety, and license restrictions
If an optimize or restore response returns done: false and a cursor, call the same ability again with the same inputs and the returned cursor to continue processing the next chunk. For queued optimization, use the returned job_id with robin/get-job to check progress. Continue checking while the job state is working.
Optimizing media changes image files. Restoring replaces optimized files with their backed-up originals, so check the selected attachment IDs before approving either operation. Keep original-image backups enabled if you may need to restore images.
⚠️ Confirm destructive actions: robin/clear-backups permanently deletes the original-image backups, so you cannot use them to restore images afterward. The ability only runs when you explicitly pass confirm: true.
WebP conversion and scheduled optimization are available without Pro. AVIF conversion and the background optimization type require an active Pro license.
