mcp-easy-ai__wp_list_media
Lists media library items (per_page 10 by default, 100 at most; page or offset). Filters: search, media_type (image/video/audio/application), mime_type (one exact type, e.g. "image/png"), author, author_exclude, parent (the post an item is attached to; 0 = unattached only) or parent_exclude (0 = leave unattached items out), include or exclude (item IDs), after / before (upload date, ISO 8601), status (inherit by default; private, trash, a comma-separated list, or any = inherit and private), and taxonomy_filters / taxonomy_exclude (taxonomy slug → term IDs, e.g. {"mlo-category": [12]} for a media folder; attachment taxonomies shown in the REST API only — find them with wp_get_taxonomies, their terms with wp_list_terms), joined by taxonomy_relation (AND by default, or OR). Sort with orderby (date by default; id, title, slug, modified, author, parent, include) and order (desc by default); items that tie are ordered by ID, so pages never repeat or skip one. context e… Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination. | |
| after | No | Only media uploaded on or after this ISO 8601 date-time (e.g. "2026-01-01T00:00:00"). | |
| order | No | Order direction. | desc |
| author | No | Uploader/author user ID to filter by. | |
| before | No | Only media uploaded on or before this ISO 8601 date-time (e.g. "2026-12-31T23:59:59"). | |
| offset | No | Skip this many matching items. Replaces page: send one or the other. | |
| parent | No | Only items attached to this post ID. 0 lists unattached items only. Not with parent_exclude. | |
| search | No | Search query to filter media items. | |
| status | No | inherit (default: every ordinary media item), private, trash (only with MEDIA_TRASH), a comma-separated list of those, or any (inherit and private, as WP_Query reads any for attachments). A status other than inherit needs edit_posts. | |
| context | No | view (default): items you can read. edit: only items you can edit (needs edit_posts). | view |
| exclude | No | IDs to leave out. Not with include: WordPress ignores an exclusion when include is given. | |
| include | No | Only these IDs (non-empty). With orderby "include", results keep this order. | |
| orderby | No | Field to order results by. include keeps the order of `include`. | date |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| per_page | No | Number of media items per page (1-100). | |
| mime_type | No | MIME type to filter by (e.g. image/jpeg, application/pdf). | |
| media_type | No | Media type to filter by. | |
| raw_columns | No | Edit context only. Each item also carries raw: every database column as WordPress stores it (ID, post_author, post_date, post_date_gmt — 0000-00-00 00:00:00 for an unscheduled draft —, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_content_filtered, post_parent, guid, menu_order, post_type, post_mime_type, comment_count, filter). Default false. | |
| author_exclude | No | Array of author user IDs to EXCLUDE from results. | |
| parent_exclude | No | Leave out items attached to these post IDs (0 leaves out unattached items). Not with parent, which WordPress lets override it. | |
| taxonomy_exclude | No | Exclude items assigned to these terms; same shape as taxonomy_filters. | |
| taxonomy_filters | No | Only items assigned to these terms: an object keyed by taxonomy slug whose values are arrays of term IDs, e.g. {"mlo-category": [12, 15]}. Only taxonomies registered on attachments and exposed in the REST API are accepted; a JSON string of the same object is also accepted. | |
| taxonomy_relation | No | How multiple taxonomies in taxonomy_filters combine. | AND |