← Back to Tools Reference

wp_list_media

Read-only

Description

Use this tool to browse your WordPress media library. Your AI can filter by file type (images, video, documents), search by keyword, or retrieve files uploaded within a date range. This is the typical first step before assigning a featured image or embedding existing media in new content.

See it in action

Claude Desktop — MCP Connection
👤
Show me all images uploaded in the last 30 days.
🤖
Calling Tool: wp_list_media
Done! I've used wp_list_media to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Finding recent uploads
    • Prompt: “List all media uploaded in the last 7 days.”
  2. Image-only audit
    • Prompt: “List all images in the media library uploaded before 2023 so I can review what to clean up.”
  3. PDF catalog
    • Prompt: “Show me all PDFs currently in the media library.”
  4. Finding unattached media
    • Prompt: “List all media items that are not attached to any post or page.”
  5. Storage audit
    • Prompt: “How many total media files do I have? List the most recent 20.”

Access this tool today

Install the Easy MCP AI plugin to securely expose wp_list_media to Claude, ChatGPT, and more.

Download Plugin