Every Toolbelt assistant and organization has access to dedicated cloud storage backed by Google Cloud Storage (GCS). When an assistant generates an image, writes a dashboard app, exports a dataset, or analyzes a document, those artifacts persist in cloud storage.
Beyond simple file hosting, Toolbelt storage provides conversational file management tools and built-in Document Indexing (Ephemeral RAG), enabling semantic vector search across large documentation sets, PDFs, and data dumps without consuming conversational context tokens.
Separate workspace storage for personal assistant files and organization shared storage for team-wide assets and documents.
Index PDFs, DOCX, CSV, and text files into an ephemeral knowledge index to perform sub-second semantic retrieval during conversations.
Read, write, patch, move, rename, and grep storage files directly in chat without downloading files locally or rewriting entire documents.
Storage Scopes#
Toolbelt separates storage into two distinct scopes:
| Scope | Identifier | Purpose | Access Control |
|---|---|---|---|
| Workspace Storage | scope: "assistant" (default) |
Scoped to a specific assistant. Holds generated dashboards, temporary outputs, DuckDB files, and personal drafts. | Private to the assistant and its authorized users. |
| Organization Shared Storage | scope: "org" |
Shared across the entire organization. Holds brand assets, style guides, organization-wide reference docs, and shared datasets. | Accessible by all organization members and shared assistants. |
Document Indexing & Semantic Search (RAG)#
When working with long documents (such as 100-page policy manuals, technical specifications, or large CSV catalogs), reading the entire file into an LLM context window is slow and expensive.
Toolbelt includes native Document Indexing that automatically chunks text and document files into a vector index for semantic retrieval.
How It Works#
- Index a File: When you or your assistant calls
index_storage_file, Toolbelt parses the file (PDF, DOCX, CSV, HTML, TXT, MD), splits it into semantic chunks, and builds a vector index in background storage. - Query the Index: When asking questions, the assistant uses
search_documentswith a targeted natural-language query. - Context Injection: Only the top relevant passages (ranked by semantic relevance) are retrieved and injected into the conversation.
Indexing Actions#
| Action | Parameters | Description |
|---|---|---|
index_storage_file |
fileName, scope (assistant | org) |
Add or re-index a single storage file into the knowledge base. |
index_storage_files |
fileNames, scope |
Bulk index multiple storage files at once. |
search_documents |
query, limit (default: 5) |
Perform semantic vector search across indexed documents. |
list_indexed_documents |
None | List all currently indexed documents in the workspace and shared library. |
remove_indexed_document |
fileName, scope |
Remove a document and its embeddings from the index. |
You can ask your assistant in plain English: "Index the Q3 financial report in storage and tell me what the total operating margin was." The assistant will index the file, search for the relevant passages, and provide the answer.
Conversational File Tools#
Assistants can inspect, manage, and modify storage files directly during a conversation using native storage tools:
list_storage_files: Lists files in workspace or organization shared storage. Supports directory navigation viaprefix, substring filtering viasearch, and pagination limits (maxResults).read_storage_file: Reads raw text, line windows (startLine,lineCount), or returns inline images for JPG/PNG/WebP files. For HTML, supportsmode: "skeleton"for fast structural analysis.write_text_file: Writes brand new files or replaces small files in storage.patch_text_file: Performs atomic find-and-replace patches on existing source files (searchBlock→replaceBlock) without rewriting unrelated lines.move_storage_file: Moves or renames files and directories across paths and storage scopes.source: The full path of the file or folder to move (e.g.,temp/draft-report.csv).destination: The full destination path, including the new file name (e.g.,reports/2026/q3-report.csv).scope: The target storage scope (assistantfor workspace storage, ororgfor shared organization storage).
rename_storage_file: Renames a file or folder in place within its current directory.fileName: The current path/name of the file or directory.newName: The new name only (do not include directory slashes).scope: The storage scope (assistantororg).
delete_storage_file: Deletes a file from workspace or organization shared storage.grep_storage_file: Searches files across storage using regular expressions to locate lines and edit targets.get_storage_file_url: Generates short-lived signed URLs for browser downloads,<img src>tags, or DuckDB queries against remote Parquet/CSV files.upload_file_to_storage: Uploads base64-encoded binary or media file content (PDFs, images, ZIPs, datasets) directly to storage.get_storage_file_metadata: Inspects file metadata including byte size, MIME content type, line count, and content hash without fetching the entire payload.get_storage_stats: Returns storage usage statistics (total file count and consumed byte volume) for workspace or organization storage.read_html_element: Extracts specific DOM elements by CSS selector for surgical HTML modifications.
Storage Permissions#
Storage operations respect organization permission levels:
| Role / Permission | Allowed Operations |
|---|---|
| Member (View) | List files, download files, generate signed URLs, search indexed documents. |
| Member (Edit) | Upload files, write/patch/move/rename files, index documents, delete files. |
| Admin / Owner | Disable storage, manage organizational quotas, initialize storage buckets. |
API Reference (REST)#
1. Upload a File#
POST /api/workspaces/{workspaceId}/storage/upload
Content-Type: multipart/form-data
file: [binary payload]
fileName: "financial-report.pdf"
scope: "assistant"
2. List Files#
GET /api/workspaces/{workspaceId}/storage/files?prefix=reports/&maxResults=50
3. Get a Signed URL#
GET /api/workspaces/{workspaceId}/storage/files/{fileName}/url?action=read&expiresIn=3600
Response:
{
"success": true,
"url": "https://storage.googleapis.com/...signed-url...",
"expiresIn": 3600
}
4. Delete a File#
DELETE /api/workspaces/{workspaceId}/storage/files/{fileName}
Related Topics#
- Dashboard SDK — Read and render storage images and assets inside custom apps.
- Auto-DuckDB — Query structured CSV and Parquet files in storage using SQL.
- Security & Compliance — Storage encryption at rest and access control policies.
