Edit a media item (alias)
edit_mediaUpdate existing media items by modifying title, caption, alt text, description, or attaching to a post. Correct or enhance media metadata on WordPress.
Instructions
Legacy alias for update_media, kept for backward compatibility. Prefer update_media.
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": {
"id": "<id>"
},
"name": "edit_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The item ID. | |
| post | No | Attach to this content ID. | |
| title | No | Display title. | |
| caption | No | Caption shown beneath the item. | |
| 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. | |
| alt_text | No | Alternative text for accessibility and SEO. | |
| description | No | Longer descriptive text. |