mcp_list_media
List WordPress media library items with IDs, titles, URLs, MIME types, dates, image details, and paging totals; filter by MIME type, search terms, page, and sort order.
Instructions
List media library items (id, title, url, mime_type, date; images also alt, width, height) with paging totals
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": "mcp_list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| site | Yes | Site id (see list_sites) | |
| order | No | Sort direction (default DESC) | |
| search | No | Search term | |
| orderby | No | Order by field (default date) | |
| per_page | No | Items per page (default 20) | |
| mime_type | No | Filter by MIME type or top-level type (image, video, audio, application, image/png) |