ask-gemini
Query Google Gemini via gemini-relay for analysis, reasoning, architectural planning, and code changes. Use plan mode for non-destructive analysis or accept-edits mode for direct modifications.
Instructions
Query Google Gemini (Gemini 3.8 Flash / 3.1 Pro) for analysis, reasoning, architectural planning, and code changes with massive context window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Agent execution mode: 'plan' for architectural analysis without modifying files, 'accept-edits' for direct edit application. | |
| model | No | Gemini model to use (e.g., 'gemini-3.8-flash-high', 'gemini-3.1-pro-high', 'flash', 'pro'). Default: 'gemini-3.8-flash-high'. | |
| effort | No | Reasoning effort ('low', 'medium', 'high') for Gemini 3.8 Flash, 3.7 Flash, and 3.1 Pro. Controls depth of thinking tokens. | |
| prompt | Yes | Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions | |
| addDirs | No | Optional additional workspace directories to provide context to Gemini. | |
| sandbox | No | Use sandbox mode (-s flag) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment | |
| changeMode | No | Enable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly | |
| chunkIndex | No | Which chunk to return (1-based) | |
| jsonSchema | No | Optional JSON schema to enforce structured output from Gemini. | |
| includeUsage | No | Set to true to append token usage and timing metrics to the response. | |
| chunkCacheKey | No | Optional cache key for continuation | |
| conversationId | No | Optional conversation ID to resume a previous session. |