/sirv | Type: Application | PCID required: Yes
Image CDN upload, management, and statistics
Tools
| Tool | Description |
|---|---|
sirv_upload_image | Upload an image to Sirv CDN |
sirv_get_image_info | Get information about an image on Sirv |
sirv_list_files | List files in Sirv account |
sirv_delete_file | Delete a file from Sirv |
sirv_get_stats | Get HTTP usage statistics for Sirv account |
sirv_search_files | Search files in Sirv using Elasticsearch-style query (filename, basename, dirname, meta, size, dates) |
sirv_fetch_file | Fetch a file from a URL and store it in Sirv |
sirv_get_account | Get Sirv account info (CDN URL, aliases, etc.) |
sirv_get_account_storage | Get Sirv account storage usage |
sirv_download_file | Get the public URL to download a file from Sirv CDN. Sirv files are served at public URLs - no auth required. Returns downloadUrl for direct access. Use for images, PDFs, or any file stored in Sirv. |
sirv_get_storage_stats | Get Sirv storage statistics |
sirv_upload_image
Upload an image to Sirv CDN Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filename | string | Yes | — | Filename for the uploaded image |
imageUrl | string | No | — | URL of image to upload |
imageContent | string | No | — | Base64 encoded image content |
folder | string | No | — | Folder path to upload to |
overwrite | boolean | No | false | Overwrite existing file |
sirv_get_image_info
Get information about an image on Sirv Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filename | string | Yes | — | Image filename to get info for |
sirv_list_files
List files in Sirv account Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dirname | string | No | "/" | Directory to list (e.g. /Images, /). Root ”/” is supported and lists top-level items. |
sirv_delete_file
Delete a file from Sirv Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filename | string | Yes | — | Filename to delete |
sirv_get_stats
Get HTTP usage statistics for Sirv account Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
startDate | string | No | — | Start date for stats (YYYY-MM-DD) |
endDate | string | No | — | End date for stats (YYYY-MM-DD) |
sirv_search_files
Search files in Sirv using Elasticsearch-style query (filename, basename, dirname, meta, size, dates) Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Search query (Elasticsearch syntax) |
size | number | No | 100 | Max results to return |
from | number | No | 0 | Offset for pagination |
sort | object | No | — | Sort options, e.g. { “filename”: “asc” } |
sirv_fetch_file
Fetch a file from a URL and store it in Sirv Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | — | URL to fetch from |
filename | string | Yes | — | Destination path in Sirv (e.g. /Images/file.jpg) |
auth | object | No | — | Basic auth if URL requires it |
sirv_get_account
Get Sirv account info (CDN URL, aliases, etc.)sirv_get_account_storage
Get Sirv account storage usagesirv_download_file
Get the public URL to download a file from Sirv CDN. Sirv files are served at public URLs - no auth required. Returns downloadUrl for direct access. Use for images, PDFs, or any file stored in Sirv. Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filename | string | Yes | — | Sirv file path (e.g. /Images/file.jpg) |

