ask-gemini
Analyze large codebases or answer questions by sending prompts to Google Gemini, with model selection, sandboxed execution, session resumption, and structured edit suggestions.
Instructions
model selection [-m], sandbox [-s], and changeMode:boolean for providing edits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model to use (e.g., 'gemini-3-flash-preview'). If not specified, uses the default model (gemini-3-pro-preview). | |
| prompt | Yes | Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions | |
| 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) | |
| session_id | No | Session ID or index to resume a previous conversation context (maps to --resume) | |
| allowed_tools | No | Specific tools to allow without confirmation (overrides approval_mode) | |
| approval_mode | No | Autonomy control: 'default' (ask), 'auto_edit' (allow edits), 'yolo' (allow all) | yolo |
| chunkCacheKey | No | Optional cache key for continuation | |
| output_format | No | Output format: 'text' (default), 'json', or 'stream-json' | |
| experimental_acp | No | Enable experimental ACP (Agentic Coding Protocol) mode | |
| include_directories | No | Additional directories to include in the workspace context |