Skip to main content
Server path: /filestorage | Type: Embedded | PCID required: No Upload, download, share, and manage files. Create collections to organize files, generate shareable URLs, and make files public.

Tools

ToolDescription
filestorage_list_collectionsList all file storage collections
filestorage_create_collectionCreate a new file storage collection
filestorage_list_itemsList files in a collection
filestorage_create_file_from_contentCreate a file from text content
filestorage_create_file_from_file_urlUpload a file from a URL
filestorage_get_itemGet file metadata and optionally content
filestorage_update_itemAppend content or update metadata
filestorage_delete_itemDelete a file
filestorage_create_sharelinkCreate a shareable URL for a file
filestorage_make_file_publicMake a file publicly accessible

filestorage_list_collections

List all file storage collections in the current workspace. Parameters: None Response fields:
FieldTypeDescription
collectionsobject[]Array of collection objects
collections[].idstringCollection ID
collections[].namestringCollection name
collections[].descriptionstringCollection description
collections[].typestringCollection type
collections[].maxItemsnumberMaximum number of items allowed
collections[].numItemsnumberCurrent number of items
collections[].isSharedbooleanWhether the collection is shared
collections[].statusstringCollection status
collections[].createdBystringUser ID of the creator
collections[].createdByNamestringDisplay name of the creator
collections[].permissionsobjectPermission settings
collections[].permissions.adminbooleanWhether the user has admin access
collections[].permissions.readbooleanWhether the user has read access
collections[].permissions.writebooleanWhether the user has write access
collections[].createdAtstringCreation timestamp
collections[].updatedAtstringLast updated timestamp
collections[].triggerUrlsobjectTrigger URLs associated with the collection

filestorage_create_collection

Create a new file storage collection. Parameters:
ParameterTypeRequiredDescription
namestringYesCollection name
descriptionstringNoCollection description
createdBystringYesUser ID of the creator
createdByNamestringYesDisplay name of the creator
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringID of the newly created collection

filestorage_list_items

List files in a collection. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
formatstringNo"light"Response format: "light" or "full". Full format includes signed URLs.
fileLinksExpireInDaysnumberNo1Number of days until file links expire (1–7 or "never")
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
queryParamsobjectNoAdditional query parameters
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
itemsobject[]Array of file objects
items[].idstringFile ID
items[].filenamestringFile name
items[].filepathstringFile path in storage
items[].typestringFile type
items[].mime_typestringMIME type of the file
items[].file_sizenumberFile size in bytes
items[].isPublicbooleanWhether the file is publicly accessible
items[].collectionIdstringParent collection ID
items[].createdAtstringCreation timestamp
items[].updatedAtstringLast updated timestamp
items[].signedUrlstringSigned download URL (full format only)
items[].metadataobjectFile metadata

filestorage_create_file_from_content

Create a file from text content. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
filenamestringYesName for the new file
contentstringYesText content of the file
metadataobject or stringNoMetadata to attach to the file
fileLinksExpireInDaysnumberNo1Number of days until file links expire (1–7 or "never")
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
returnFileUrlbooleanNofalseWhether to return a signed file URL in the response
replaceExistingbooleanNotrueWhether to replace an existing file with the same name
queryParamsobjectNoAdditional query parameters
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringFile ID
collectionIdstringParent collection ID
file_urlstringSigned file URL (when returnFileUrl is true)
file_sizenumberFile size in bytes
mime_typestringMIME type of the file
metadataobjectFile metadata

filestorage_create_file_from_file_url

Upload a file from a URL. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
fileUrlstringYesURL of the file to upload
metadataobject or stringNoMetadata to attach to the file
fileLinksExpireInDaysnumberNo1Number of days until file links expire (1–7 or "never")
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
returnFileUrlbooleanNofalseWhether to return a signed file URL in the response
replaceExistingbooleanNotrueWhether to replace an existing file with the same name
queryParamsobjectNoAdditional query parameters
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringFile ID
file_urlstringSigned file URL
file_sizenumberFile size in bytes
mime_typestringMIME type of the file
metadataobjectFile metadata
collectionIdstringParent collection ID

filestorage_get_item

Get file metadata and optionally file content. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to retrieve
getFileContentsbooleanNofalseWhether to return the file content (text files only)
fileLinksExpireInDaysnumberNo1Number of days until file links expire (1–7 or "never")
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
queryParamsobjectNoAdditional query parameters
returnSignedUrlbooleanNofalseWhether to return a signed download URL
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
idstringFile ID
filenamestringFile name
filepathstringFile path in storage
typestringFile type
mime_typestringMIME type of the file
sizenumberFile size
file_sizenumberFile size in bytes
isPublicbooleanWhether the file is publicly accessible
collectionIdstringParent collection ID
createdAtstringCreation timestamp
updatedAtstringLast updated timestamp
signedUrlstringSigned download URL (when returnSignedUrl is true)
contentstringFile content (when getFileContents is true)
metadataobjectFile metadata
accesslistobjectAccess control list for the file

filestorage_update_item

Append content to a text file or update file metadata. Parameters:
ParameterTypeRequiredDefaultDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to update
contentstringNoText content to append (text files only)
metadataobject or stringNoMetadata to update
fileLinksExpireInDaysnumberNoNumber of days until file links expire (1–7 or "never")
fileLinksExpireInMinutesnumberNoNumber of minutes until file links expire (overrides days)
returnFileUrlbooleanNofalseWhether to return a signed file URL in the response
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
idstringFile ID
file_urlstringSigned file URL (when returnFileUrl is true)
file_sizenumberFile size in bytes
mime_typestringMIME type of the file
isPublicbooleanWhether the file is publicly accessible
filenamestringFile name
metadataobjectFile metadata

filestorage_delete_item

Delete a file from a collection. This action is irreversible. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to delete
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringConfirmation message

Create a shareable URL for a file. The link can be configured to expire after a set number of days or minutes. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to share
fileLinksExpireInDaysnumberNoNumber of days until the link expires (1–7)
fileLinksExpireInMinutesnumberNoNumber of minutes until the link expires (overrides days)
queryParamsobjectNoAdditional query parameters to include in the link
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
short_urlstringShareable short URL
expiresAtstringExpiration timestamp of the link
queryParamsobjectQuery parameters included in the link

filestorage_make_file_public

Make a file publicly accessible via a permanent URL. Once public, the file can be accessed by anyone with the URL. Parameters:
ParameterTypeRequiredDescription
collectionIdstringYesCollection ID
filenamestringYesName of the file to make public
proxyIdstringNoProxy ID for cross-workspace access
Response fields:
FieldTypeDescription
messagestringSuccess message
public_urlstringPermanent public URL for the file
filenamestringFile name
isPublicbooleanWhether the file is now publicly accessible