gemini_uploadFile
Upload files to the Gemini API by specifying a local path, returning metadata with unique name and URI. Requires Google AI Studio API keys; supports optional display name and MIME type.
Instructions
Uploads a file (specified by a local path) to be used with the Gemini API. NOTE: This API is not supported on Vertex AI clients. It only works with Google AI Studio API keys. Returns metadata about the uploaded file, including its unique name and URI.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
displayName | No | Optional. A human-readable name for the file in the API. Max 100 chars. | |
filePath | Yes | Required. The full local path to the file that needs to be uploaded. | |
mimeType | No | Optional. The IANA MIME type of the file (e.g., 'text/plain', 'image/jpeg'). If omitted, the server will attempt to infer it from the file extension of filePath. |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MCP Gemini Server
Related Tools
- @bsmi021/mcp-gemini-server
- @bsmi021/mcp-gemini-server
- @sanxfxteam/gemini-mcp-server
- @minbang930/Youtube-Vision-MCP
- @bsmi021/mcp-gemini-server