Tools Catalog / Media generation / wp_get_media_item

wp_get_media_item tool reference for media workflows

Read-only
Group LibraryCapability upload_files

gets media item details by ID.

Description

gets media item details by ID.

What it is for

  • Viewing the URL, metadata, and attachment data.

Example use case

checking an attachment before reuse.

Sample prompt

Get media item ID 981 so I can inspect its URL and metadata before attaching it to a post.

Sample response

{
  "tool": "wp_get_media_item",
  "status": "ok",
  "items": []
}

What does wp_get_media_item do?

gets media item details by ID.

Does wp_get_media_item modify the media library?

No. It reads media records without changing the library.

Which capability is commonly required?

It usually runs under controls compatible with upload_files and the active MCP profile.

How should wp_get_media_item be used safely?

Use focused queries and keep the scope limited to the asset set you need.

What dependency should be confirmed first?

WordPress media library