Rename, Copy, or Delete a Sirv File
sirv_cdn_manage_fileRename, copy, or delete a single file in a connected Sirv account; supply a target path for rename/copy and confirm before deleting.
Instructions
Rename, copy or delete one file in the connected Sirv account. Rename and copy need target_path. Delete removes the file from the Sirv account: ask the user first.
These are files in the Sirv account connected to the workspace, not Studio library assets. For a library asset, use sirv_delete_asset or sirv_bulk_edit_assets.
Studio queues the change and Sirv applies it in the background, a few seconds later. 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": {
"action": "<action>",
"file_path": "<file_path>"
},
"name": "sirv_cdn_manage_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| action | Yes | What to do with the file | |
| file_path | Yes | Full path of the file in Sirv, such as /products/hero.jpg | |
| target_path | No | Needed for rename and copy: the new full path, such as /products/boot-2.jpg |