wp_get_media
Retrieve a WordPress media item by site and media ID to inspect its details and identify the correct media record for WordPress tasks.
Instructions
Get a media item by ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"id": "<id>"
},
"name": "wp_get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Media ID | |
| site | Yes | Site id (see list_sites) |