from_file
Describe a local file—text, image, audio, or video—by providing its path and instructions. Send the file to Gemini and receive a description or extracted content based on the prompt given.
Instructions
Alias for vision_from_file — describe a single file using Gemini.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Local file path to read. | |
| type | Yes | Media category — text, image, audio, or video. | |
| prompt | Yes | Instructions to the model (what to describe/extract). | |
| compact | No | If true, compact history and reconnect after this request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |