Upload file to Gemini Files API
upload_fileUpload a local file to Gemini Files API to obtain its URI and metadata, enabling reuse of large images across prompts without re-uploading.
Instructions
Upload a local file through the Gemini Files API and return its URI & metadata. Useful when the image is larger than 20MB or reused across prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Server-accessible file path to upload to Gemini Files API. | |
| display_name | No | Optional display name for the uploaded file. |