wp_list_media
List and filter media items from a WordPress site by type or search term to browse and manage the media library through the MCP WordPress Server.
Instructions
Lists media items from a WordPress site, with filters.
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 |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| search | No | Limit results to those matching a search term. | |
| per_page | No | Number of items to return per page (max 100). | |
| media_type | No | Limit results to a specific media type. |