list_files
Retrieve metadata for all uploaded files in Gemini File API to check availability, monitor upload status, and audit storage usage within the 20GB project limit.
Instructions
LIST ALL UPLOADED FILES - Retrieves metadata for all files currently in Gemini File API (associated with API key). Updates internal cache with latest file states. RETURNS: Array of files with uri, displayName, mimeType, sizeBytes, createTime, expirationTime, state. Also shows cachedCount indicating files ready for immediate use. USAGE: Check file availability before chat, monitor upload status, audit storage usage (20GB project limit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageSize | No | Number of files to return (default 10, max 100) |