gemini_upload_to_store
Upload text or base64-encoded content to a Gemini File Search store for RAG. Send content with a MIME type and receive an operation to track progress.
Instructions
Upload content directly to a Gemini File Search store. Accepts text content or base64-encoded binary. For large files, use gemini_import_file_to_store instead. Returns an operation to track upload progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The content to upload. Plain text by default, or base64-encoded if content_encoding is "base64" | |
| mime_type | Yes | MIME type of the content, e.g. "text/plain", "application/pdf", "text/markdown" | |
| store_name | Yes | Store resource name, e.g. "fileSearchStores/abc123" | |
| display_name | No | Display name for the document (optional) | |
| custom_metadata | No | Custom metadata key-value pairs for filtering (max 20) | |
| content_encoding | No | How the content is encoded: "text" (default) or "base64" for binary files |