Gemini AI Studio icon

Gemini AI Studio

Use the Google Gemini API through direct AI Studio REST calls

Actions16

File → List

AI-generated

Summary

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.

Links

Discussion