← Back to Tools Reference
Download Plugin
wp_get_media
Read-onlyDescription
Use this tool to get the complete details of a specific media file, including the URL, alt text, caption, file type, upload date, and dimensions. Your AI uses this when it needs the exact URL of a file, or to review metadata before making updates.
See it in action
Claude Desktop — MCP Connection
👤
Show me the details of the featured image on our homepage.
🤖
Calling Tool: wp_get_media
Done! I've used wp_get_media to complete that for you.
{"status": "success"} Example Use Cases & Sample Prompts
- Getting an image URL
- Prompt: “Find the company logo in the media library and give me its direct URL.”
- Verifying before use
- Prompt: “Before setting it as a featured image, fetch the uploaded banner image to confirm the dimensions and alt text.”
- Checking metadata
- Prompt: “Look up the media item called ‘hero-image.jpg’ and tell me its current caption and alt text.”
- Post association check
- Prompt: “Get the details of the featured image for my latest post to see what file it’s using.”
- URL retrieval for embedding
- Prompt: “I need the URL of the PDF we uploaded this week — can you get it from the media library?”
Access this tool today
Install the Easy MCP AI plugin to securely expose wp_get_media to Claude, ChatGPT, and more.