Gemini File Search Documents icon

Gemini File Search Documents

Manage and query documents in Gemini File Search stores

Document → List

AI-generated

Summary

List documents in a Gemini File Search store.

Inputs

  • main (required) — Any incoming data; each item triggers a list operation and is paired with the output via pairedItem. The operation does not read fields from the input items.

Output shape

Each incoming item produces one or more output objects. Each output object contains a json field with the document data and a pairedItem field that references the originating input item.

If the underlying call returns an array, each element becomes a separate output; otherwise a single output is produced.

Examples

Example 1: List up to 10 documents from a store, filtering by metadata.

Store: my-store (selected from list), Return All: false, Limit: 10, Metadata Filter: 'author = Smith', Delete Duplicates: false

Example 2: Return all documents and delete duplicates, keeping the newest version.

Store: fileSearchStores/abc123 (by name), Return All: true, Delete Duplicates: true, Force Delete Duplicates: true

Discussion