gemini_startChat
Start a stateful chat session with a Gemini model, returning a unique sessionId for continued interaction. Customize with initial history, generation settings, and safety configurations.
Instructions
Initiates a new stateful chat session with a specified Gemini model. Returns a unique sessionId to be used in subsequent chat messages. Optionally accepts initial conversation history and session-wide generation/safety configurations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
generationConfig | No | Optional. Session-wide generation configuration settings. | |
history | No | Optional. An array of initial conversation turns to seed the chat session. Must alternate between 'user' and 'model' roles, starting with 'user'. | |
modelName | No | Optional. The name of the Gemini model to use for this chat session (e.g., 'gemini-1.5-flash'). If omitted, the server's default model (from GOOGLE_GEMINI_MODEL env var) will be used. | |
safetySettings | No | Optional. Session-wide safety settings to apply. | |
tools | No | Optional. A list of tools (currently only supporting function declarations) the model may use during the chat session. |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MCP Gemini Server
Related Tools
- @bsmi021/mcp-gemini-server
- @bsmi021/mcp-gemini-server
- @bsmi021/mcp-gemini-server
- @DaInfernalCoder/perplexity-mcp
- @bsmi021/mcp-gemini-server