gemini_prompt_with_context
Send prompts to Gemini AI with separate context blocks for more accurate responses. Prepends context in tags for clear information separation in stateless interactions.
Instructions
Invoke the headless Gemini CLI with a prompt plus a separate context block. Stateless — each call is an independent turn. The context is prepended to the prompt inside a tag. Runs in the MCP server's current working directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt text sent to the Gemini CLI. | |
| context | Yes | Context block prepended to the prompt (e.g., file contents, prior notes). | |
| model | No | Optional model identifier (e.g., gemini-2.5-pro). |