gemini_upload_file
Upload files to Gemini Files API for analysis. Supports up to 2GB per file with 48-hour retention.
Instructions
Upload a file to Gemini Files API for use with analysis tools. Files are retained for 48 hours. Max 2GB per file, 20GB total.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "gemini_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file to upload | |
| mimeType | No | MIME type override (auto-detected from extension if omitted) | |
| displayName | No | Display name for the uploaded file |