wp_update_media_metadata
Update media metadata for any WordPress attachment by ID, changing the title, alt text, caption, or description. Set accurate alt attributes to improve accessibility and SEO.
Instructions
Update media title, alt text, caption, or description
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_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| alt | No | ||
| title | No | ||
| caption | No | ||
| description | No |