get_file
Retrieve file metadata from Gemini API to verify file state, check expiration, and refresh cache entries using the file URI.
Instructions
GET FILE METADATA & UPDATE CACHE - Retrieves current metadata for specific file from Gemini API and updates cache. USAGE: Pass fileUri from upload response or list_files. RETURNS: Complete file info including uri, displayName, mimeType, sizeBytes, create/update/expiration times, sha256Hash, state. Automatically adds to cache if missing. USE CASE: Verify file state, check expiration, refresh cache entry.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileUri | Yes | The file URI or name returned from upload_file |