royal-mcp__wp_get_media
List media library attachments. Returns id, title, source_url, alt_text, mime_type, and date for each. Filter by mime_type to narrow to images / videos / audio / documents. Pass search to find a specific attachment by title, filename, or alt text instead of paging the whole library. For libraries over 100 items, paginate with offset (offset=0 first page, offset=100 second page). Filter by alt_text to answer alt-audit questions ("empty" = no alt text yet, "present" = alt text set). (site: demo.royalplugins.com) Through Royally: read-only, runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Zero-based offset for pagination. Combine with per_page to walk past 100 items. Default 0. | |
| search | No | Optional. Matches attachment title, filename, or alt text (case-insensitive, partial match). | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| alt_text | No | Filter by alt-text state. empty = attachments missing alt text (accessibility/SEO audit). present = attachments with alt text set. any (default) = no alt filter. | |
| per_page | No | Number of items (default 10, max 100) | |
| mime_type | No | Filter by mime type prefix or full type (image, video, audio, application/pdf) |