ask-gemini
Analyze files and answer questions with Gemini. Use @ syntax to include files, select models, and test in sandbox.
Instructions
model selection [-m], sandbox [-s], and changeMode:boolean for providing edits
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"sandbox": "<sandbox>",
"changeMode": "<changeMode>",
"noFallback": "<noFallback>"
},
"name": "ask-gemini"
}
}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 | Yes | Use sandbox mode (-s flag) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment | |
| changeMode | Yes | Enable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly | |
| noFallback | Yes | Disable automatic fallback from gemini-2.5-pro to gemini-2.5-flash when Pro quota is exceeded | |
| chunkIndex | No | Which chunk to return (1-based) | |
| chunkCacheKey | No | Optional cache key for continuation |