Update Sirv File Metadata
sirv_cdn_update_file_metadataUpdate metadata for one Sirv CDN file: set title, description, product fields, and tags; omitted values stay unchanged.
Instructions
Change the metadata of one file in the connected Sirv account, at file_path. Send any of title, description, product, add_tags and remove_tags. The fields you leave out stay as they are.
title, description and the product fields take the new values. Sirv uses the description as the image's alt text. add_tags adds tags and keeps the others. remove_tags removes only the tags you name.
These are files in the Sirv account connected to the workspace, not Studio library assets. For a library asset, use sirv_update_asset. To rename, copy or delete the file, use sirv_cdn_manage_file. Read the current values first with sirv_cdn_get_file_metadata; Studio keeps no copy of the old title or description.
Studio queues the change and Sirv applies it in the background, so a read straight after can still show the old values. Returns the queued change.
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": {
"file_path": "<file_path>"
},
"name": "sirv_cdn_update_file_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| title | No | New title, up to 256 characters | |
| product | No | Product fields to set on the file | |
| add_tags | No | Tags to add, up to 50 of 32 characters each. The file keeps its other tags | |
| file_path | Yes | Full path of the file in Sirv, such as /products/hero.jpg | |
| description | No | New description, up to 1024 characters. Sirv uses it as the image's alt text | |
| remove_tags | No | Tags to remove, up to 50. The file keeps its other tags |