← Back to Tools Reference

wp_update_media

Description

Use this tool to update the metadata of an existing file in your media library. Your AI can update the title, alt text, caption, and description for any file by ID. This is especially useful for SEO improvements — optimizing alt texts across dozens of images in a single conversation.

See it in action

Claude Desktop — MCP Connection
👤
Update the alt text of the hero image on our homepage.
🤖
Calling Tool: wp_update_media
Done! I've used wp_update_media to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Improving alt text for SEO
    • Prompt: “List recent media uploads and update any images that have empty alt text with descriptive alternatives.”
  2. Updating a caption
    • Prompt: “Find the hero image we uploaded last week and update its caption to match our new brand voice.”
  3. Renaming media items
    • Prompt: “Find all images uploaded this month with generic names like ‘image1.jpg’ and rename them descriptively.”
  4. Adding media descriptions
    • Prompt: “Update all uploaded PDFs in the media library with proper descriptions based on their filenames.”
  5. Accessibility audit
    • Prompt: “List recent media uploads and flag any images without alt text, then update them.”

Access this tool today

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

Download Plugin