Actions16
- Content Actions
- Cached Content Actions
- Embedding Actions
- File Actions
- Model Actions
- Token Actions
File → List
AI-generatedSummary
List files available in Gemini AI Studio, optionally controlling pagination and output format.
Inputs
- Page Size — Specify the number of files to return per page, minimum 1, default is 50.
- Page Token — Provide a token to retrieve a specific page of files.
- Return Files as Separate Items — Choose to return each file as a separate item (true) or as a single collection object (false); defaults to true.
Output shape
a list of file objects, each as a separate item if specified, or a single JSON object containing the files array
If 'Return Files as Separate Items' is true (default), each file is output as a separate item. Otherwise, the entire API response is returned as one item. Supports pagination via 'Page Size' and 'Page Token' options.