Create or List a Sirv Folder
sirv_cdn_manage_folderCreate folders in Sirv CDN or list folder contents to browse paths before uploading files.
Instructions
Create a folder, or list the contents of a folder, in the Sirv account connected to the workspace. action picks create or list.
Use list to browse Sirv paths, and create before you upload into a new folder. Do not use it for Studio library folders: use sirv_list_assets with folderId. To find files by name or tag in any folder, use sirv_cdn_search_files.
Inputs: folder_path is the full path, such as /products. continuation works with list only: pass the cursor from the page before.
create is queued, and Sirv makes the folder in the background; the answer does not say whether the folder existed already. list answers at once with contents (each item's filename, basename, dirname, contentType, size, mtime and isDirectory), total for this page, and continuation, which is null on the last page. A folder that does not exist returns FOLDER_NOT_FOUND.
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>",
"folder_path": "<folder_path>"
},
"name": "sirv_cdn_manage_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| action | Yes | create makes the folder; list returns its contents | |
| folder_path | Yes | Full path of the folder in Sirv, such as /products | |
| continuation | No | For list: the cursor from the previous page |