get_file
Retrieve file metadata from Gemini API to verify file status, check expiration dates, and update cache entries with current file information including size, type, and timestamps.
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
| Name | Required | Description | Default |
|---|---|---|---|
| fileUri | Yes | The file URI or name returned from upload_file |