AI Abilities is a Premium Addons for Elementor feature that connects AI clients such as Claude, Cursor, and Codex to your WordPress site through a built-in MCP server. Each ability is one action the connected AI can perform on your site. This doc covers one of the Media abilities: Get Media Library Images.
Get Media Library Images lets your AI client look through the images already in your WordPress media library, whether by keyword, by type, or by a specific attachment ID, and returns each match with its ID, URL, dimensions, alt text, and title.
When the AI needs a picture for something it is building, this is where it looks first. Reusing an image that is already on your site avoids a needless upload and keeps the library free of duplicates, and the attachment ID it hands back drops straight into premium-addons/insert-widget or premium-addons/update-element-settings.
At a Glance
| Category | Media |
| Access | Read-only |
| Destructive | No |
| MCP tool name | premium-addons/list-media |
| Available since | Premium Addons v4.11.87 |
Before You Start
This ability is part of the AI Abilities feature. If you have not set it up yet, follow the Elementor AI Abilities (MCP Tools) Tutorial first to enable the feature and connect your AI client. The ability must also be switched on under Premium Addons → MCP Config & AI Abilities, in the Media category:
Use Cases
Reuse an image you already uploaded. For “Put our logo in the header,” the AI searches the library by name, finds the existing file, and places it without a re-upload or a duplicate.
Choose from what is already there. Ask “Add one of my product photos to this section.” The AI lists the recent images with their titles and alt text and picks the one that fits.
Re-resolve a picture mid-build. When a job runs over several steps, the AI passes the attachment IDs back to fetch the exact URLs again, so the same image lands in every slot.
Good to Know
- Search looks at an image’s title, description, and filename, but not its alt text. Leave it empty to list everything, newest first.
idsfetches specific attachments exactly and overrides the search, paging, and type filter. An emptyidslist matches nothing rather than returning the whole library.- It returns image files by default.
mime_typenarrows that further: passimage/svg+xmlfor SVGs only, whileimagecovers every image type. - Results are paged: up to 100 per page, 20 by default, with
totalandtotal_pagesfor working through a large library. - The connected WordPress user must be allowed to upload files (the
upload_filescapability).
Inputs
| Parameter | Required | Description |
|---|---|---|
search | No | Keyword matched against the image’s title, description, and filename. Alt text is not searched. Omit to list everything. |
ids | No | Fetch these attachment IDs exactly. Overrides the search, paging, and type filter. |
mime_type | No | Restrict by type. image matches every image type; pass a specific one such as image/svg+xml to narrow it. Defaults to image. |
per_page | No | How many images to return per page, 1 to 100. Defaults to 20. |
page | No | Which page of results to return. Defaults to 1. |
Output
| Field | Description |
|---|---|
items | The matching images, newest first. Each carries id, url, width, height, alt, title, and mime_type. The id and url go together as a media control value in insert-widget or update-element-settings. |
total | The total number of matching images. |
page | The page returned. |
per_page | The page size used. |
total_pages | How many pages are available. |
Come & Join the Community
Feel free to join our Facebook group and subscribe to our YouTube channel to keep up with our newest features, improvements, and helpful video tutorials.