Update a media asset
update_mediaUpdate the alt text of an existing media asset. Changes are saved privately and require a separate publish step to go live.
Instructions
Update a media asset. Only alt_text is editable. The bytes are immutable: to replace an image, upload a new one and repoint whatever referenced the old one. Changes content on the customer's Site. Nothing becomes public: publishing is always a separate call. Needs a secret key (wv_sk_) carrying the media:write scope.
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": "update_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A UUID. | |
| alt_text | No | Send null to clear it. | |
| if_match | No | The ETag from your last read of this object. Send it and the write is refused if somebody else changed the object in the meantime, rather than silently overwriting their work. |