ask-gemini
Analyze files, codebases, or get AI insights with natural language commands. Supports model selection and sandbox testing for secure execution using the Gemini CLI interface.
Instructions
Execute 'gemini -p <prompt>' to get Gemini AI's response. Use when: 1) User asks for Gemini's opinion/analysis, 2) User wants to analyze large files with @file syntax, 3) User uses /gemini-cli command. Supports -m flag for model selection and -s flag for sandbox testing.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
model | No | Optional model to use (e.g., 'gemini-2.5-flash'). If not specified, uses the default model (gemini-2.5-pro). | |
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 |