wp_update_media
Update a WordPress media item's title, caption, alt text, or description by ID, with optional site targeting for multi-site configurations.
Instructions
Updates the metadata of an existing media item.
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": "wp_update_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the media item to update. | |
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| title | No | The new title for the media item. | |
| caption | No | The new caption. | |
| alt_text | No | The new alternative text. | |
| description | No | The new description. |