filestorage_create_collection | Create a new file storage collection for storing files. Returns { id, name, type } - use the “id” field as collectionId for subsequent operations like uploading files. |
filestorage_create_file_from_content | Create or replace a document in file storage with text content. This operation will overwrite existing files with the same filename by default. Returns file metadata including id, file_size, mime_type, and metadata. Agents: to share the created file, call filestorage_create_sharelink afterward — avoid requesting file_url as it bloats context with storage credentials. Workflows: set returnFileUrl=true to include the file_url in the response for convenient downstream use. Needs an EXISTING collection ID (not a name). |
filestorage_create_file_from_file_url | Upload a file to file storage from a URL source. Downloads the file from the provided URL and stores it in the collection. By default, uploading with the same filename will overwrite existing files. Returns file metadata including id, file_size, mime_type, and metadata. Agents: to share the uploaded file, call filestorage_create_sharelink afterward — avoid requesting file_url as it bloats context with storage credentials. Workflows: set returnFileUrl=true to include the file_url in the response for convenient downstream use. Supports all file types (documents, images, audio, video, etc.). |
filestorage_create_sharelink | DEFAULT TOOL when a user asks to ‘get’, ‘share’, or ‘send’ a file. Works for both public and private files. Creates a clean, shareable URL that serves the file directly in the browser. For private files, returns a short URL that does not expose storage signatures. For public files, returns the public URL directly. When the user says ‘get me file X’ or ‘can I have file X’, use this tool — do NOT use filestorage_get_item unless the user explicitly wants the file contents for processing. Each call generates a unique short URL with its own independent expiration. Optionally store query parameters that will be appended to the URL when the link is accessed. |
filestorage_delete_collection | Delete a file storage collection and all its files. Returns { message } on success. WARNING: This is a destructive operation that cannot be undone. |
filestorage_delete_item | Delete a file from file storage. Permanently removes the file and all associated metadata. This operation cannot be undone. Supports both filename-based deletion and itemId-based deletion. Needs an EXISTING collection ID (not a name). |
filestorage_get_item | Retrieve file metadata and optionally content from file storage. IMPORTANT: When a user asks to ‘get a file’, ‘share a file’, or ‘send me a file’, do NOT use this tool — use filestorage_create_sharelink instead, which returns a clean shareable URL (works for both public and private files). Only use this tool when you need to: (1) read the actual file contents for processing/analysis (set getFileContents=true), or (2) check file metadata (size, type, dates). Agents: avoid requesting the signedUrl as it is very long and bloats context — use filestorage_create_sharelink instead. Workflows: set returnSignedUrl=true when the URL is needed by downstream steps. |
filestorage_list_collections | List all available filestorage collections. This is a tool that is used to get the collection ID for the other filestorage tools. |
filestorage_list_items | List files in a file storage collection. Returns file metadata for browsing — no signed URLs or storage credentials are included. Recommended workflow: (1) list files to browse available files, (2) to read a specific file’s content use filestorage_get_item with getFileContents=true, (3) to share a file with a user or third party use filestorage_create_sharelink which returns a clean short URL. |
filestorage_make_file_public | Make a file public so anyone with the URL can access it. WARNING: This action makes the file accessible to anyone on the internet — confirm with the user before proceeding. Once public, the file will not expire and can be accessed without authentication. Returns the public URL. This is reversible — to make the file private again, use filestorage_update_item with a fileLinksExpireInDays value (1-7). |
filestorage_update_item | Append content to existing text files or update metadata and link expiration settings. For text files (JSON, TXT, HTML, CSV): provide content to append. For binary files (PNG, JPG, PDF, etc.): omit content and only update metadata/expiration settings without resending file content. Can also be used to make files public or update link expiry. Agents: to share a file after update, use filestorage_create_sharelink. Workflows: set returnFileUrl=true to include the file_url in the response. |