Update Asset
sirv_update_assetUpdate one Sirv library asset's file name, alt text, favorite flag, custom metadata, or metadata template; send only changed fields.
Instructions
Change one library asset: its file name, alt text or favourite flag, and its custom metadata fields. Send only what changes.
metadata merges into the asset's fields: the fields you leave out stay. templateId applies a metadata template, and null removes it.
Use it for one asset. To favourite, tag, move, copy, delete or restore many assets, use sirv_bulk_edit_assets. To write alt text with AI, use sirv_generate_alt_text.
It overwrites the values you send. Returns the updated asset, or its metadata when you changed only metadata.
Credits: free.
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": "sirv_update_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Asset id, from sirv_list_assets | |
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| altText | No | New alt text. An empty string clears it | |
| filename | No | New file name, with its extension | |
| metadata | No | Custom metadata fields to set, by field name. Merges into the existing fields | |
| isFavorite | No | true to mark the asset as a favourite, false to clear it | |
| templateId | No | Metadata template id to apply to the asset. null removes the template |