wp_list_media
Retrieve media library items from WordPress, filtering by MIME type and filename to locate specific assets quickly.
Instructions
List media files in the WordPress media library. Can filter by MIME type (image/jpeg, video/mp4, etc.) and search by name.
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_list_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| search | No | Search by filename or title | |
| per_page | No | Items per page (default: 20) | |
| mime_type | No | Filter by MIME type (e.g. "image", "image/jpeg", "video", "application/pdf") |