Update media details
wp_update_mediaUpdate the title, caption, description or alt text of a Media Library 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 | ||
| alt | No | ||
| title | No | ||
| caption | No | ||
| description | No |