Skip to main content
Glama

nanobanana-mcp-server

by zhongweili

upload_file

Upload local files to Gemini Files API to handle large images over 20MB or reuse files across multiple prompts, returning file URI and metadata.

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

NameRequiredDescriptionDefault
display_nameNoOptional display name for the uploaded file.
pathYesServer-accessible file path to upload to Gemini Files API.

Input Schema (JSON Schema)

{ "properties": { "display_name": { "anyOf": [ { "maxLength": 256, "type": "string" }, { "type": "null" } ], "default": null, "description": "Optional display name for the uploaded file.", "title": "Display Name" }, "path": { "description": "Server-accessible file path to upload to Gemini Files API.", "maxLength": 512, "minLength": 1, "title": "Path", "type": "string" } }, "required": [ "path" ], "type": "object" }

Other Tools from nanobanana-mcp-server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhongweili/nanobanana-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server