Media Toolswordpress_get_media

wordpress_get_media

Get details for a single WordPress media item.

wordpress_get_media

Get single media item details.

Parameters

1 parameter, 1 required.

NameTypeRequiredWhat it is
idnumberyesMedia ID

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_get_media",
  "arguments": {
    "id": 123
  }
}

Response

{
  "success": true,
  "id": 501,
  "title": "Hero Image",
  "alt": "A person working on a laptop",
  "caption": "",
  "sourceUrl": "https://example.com/wp-content/uploads/hero.jpg"
}

What it changes

Nothing. It only reads, so there is nothing to approve and nothing to undo.

When it fails

The failures seen most often on real sites in the last 30 days, most common first:

  • rest_no_route: The WordPress site has no such endpoint. Almost always an old plugin version, or a security plugin blocking the REST API. Update Respira for WordPress on the site and try again.

How long it takes

A typical call takes about 1.6 seconds. 19 in 20 finish within 3.8 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Example Prompts

  • "Get media 501"
  • "Show details for the logo image"