list_media
Retrieve and filter WordPress media library attachments by media type, MIME type, title, pagination, and sort order to locate files for content workflows.
Instructions
List media attachments in the WordPress media library with optional filtering
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| order | No | Sort order | |
| search | No | Search media by title | |
| orderby | No | Order by field | |
| per_page | No | Number of items per page (default: 10, max: 100) | |
| mime_type | No | Filter by MIME type (e.g., 'image/jpeg') | |
| media_type | No | Filter by media type |