edit-media-metadata
Modify media file metadata including title, caption, alt text, and description through the WordPress REST API.
Instructions
Update title, caption, alt text, and description of media files
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": {
"mediaId": "<mediaId>"
},
"name": "edit-media-metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New media title | |
| altText | No | New alt text for accessibility | |
| caption | No | New media caption | |
| mediaId | Yes | ID of the media item to edit | |
| description | No | New media description |