ask-gemini
Analyze files and codebases with natural language prompts. Supports sandbox for safe testing and change mode for structured edits.
Instructions
model selection [-m], sandbox [-s], and changeMode:boolean for providing edits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions | |
| model | No | Optional model to use (e.g., 'gemini-2.5-flash'). If not specified, uses the default model (gemini-2.5-pro). | |
| 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) | |
| chunkCacheKey | No | Optional cache key for continuation |