Get Sirv File Metadata
sirv_cdn_get_file_metadataRead the metadata of one file in the Sirv account connected to the workspace: title, description, tags and product fields, with file details such as the size.
Use it to see the current values before sirv_cdn_update_file_metadata. Do not use it for Studio library assets: use sirv_get_asset. To find a file's path, use sirv_cdn_search_files.
Inputs: file_path, the file's full path, such as /products/hero.jpg, and orgId for another workspace's Sirv account.
Read-only. Returns file_path, file_info (such as size and content type) and metadata. A path that does not exist returns a not-found error.
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_get_file_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| file_path | Yes | Full path of the file in Sirv, such as /products/hero.jpg |