Get a media item
get_mediaRetrieve a specific media item by ID from a WordPress site, including source URL, dimensions, generated sizes, alt text, and attachment details.
Instructions
Fetch one media item by ID, including its source URL, dimensions, generated sizes, alt text and where it is attached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The attachment ID. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |