media_get_attachment
Retrieves a WordPress media attachment's optimization records, job history, and file-replace undo status for auditing or troubleshooting.
Instructions
One attachment: its optimization records, job history and whether a file replace can be undone.
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": "media_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attachment id | |
| site | Yes | Site id (see list_sites) |