Actions7
- File Actions
- Batch Actions
File → List
AI-generatedSummary
List all uploaded files from the Gemini File Manager.
Inputs
- additionalOptions — Collection of additional options for the listing, including pagination and timeout settings.
- additionalOptions.pageSize — Maximum number of files to return when listing (default: 100).
- additionalOptions.pageToken — Token for pagination to fetch the next set of files.
- additionalOptions.timeout — Upload timeout in milliseconds (default: 300000).
Output shape
a list of uploaded files
Returns a list of file objects, or an empty array if no files are found.
Examples
Example 1: List the first 50 uploaded files.
Set pageSize to 50 in additionalOptions.
Example 2: List uploaded files with pagination by using a pageToken.
Provide the pageToken in additionalOptions for paginated results.