wp_media_list
List WordPress media items by type, MIME, text, date range, or parent. Get source URLs and thumbnails for each match.
Instructions
List media library items with filters. Filter by media_type (image/video/audio/file), exact mime_type (e.g. "image/png"), search text, date range, or parent post. Returns normalized media including source_url and thumbnails.
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": "wp_media_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| after | No | ||
| order | No | desc | |
| before | No | ||
| parent | No | ||
| search | No | ||
| orderby | No | date | |
| per_page | No | ||
| mime_type | No | ||
| media_type | No |